Skip to content

Commit

Permalink
Fixed breaking change in server crate
Browse files Browse the repository at this point in the history
  • Loading branch information
w-henderson committed Nov 7, 2021
1 parent b27f857 commit 2478000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion humphrey-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "humphrey_server"
version = "0.2.5"
version = "0.2.6"
edition = "2018"
license = "MIT"
homepage = "https://github.com/w-henderson/Humphrey"
Expand Down
4 changes: 2 additions & 2 deletions humphrey-server/src/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn main(config: Config) {
logger.info("Starting server");

#[cfg(feature = "plugins")]
if let Ok(plugins_count) = load_plugins(&state.config, state) {
if let Ok(plugins_count) = load_plugins(&state.config, state.clone()) {
logger.info(&format!("Loaded {} plugins", plugins_count))
} else {
exit(1);
Expand Down Expand Up @@ -199,7 +199,7 @@ fn websocket_handler(request: Request, mut source: TcpStream, state: Arc<AppStat
}

#[cfg(feature = "plugins")]
fn load_plugins(config: &Config, state: &Arc<AppState>) -> Result<usize, ()> {
fn load_plugins(config: &Config, state: Arc<AppState>) -> Result<usize, ()> {
let mut manager = state.plugin_manager.write().unwrap();

for plugin in &config.plugins {
Expand Down

0 comments on commit 2478000

Please sign in to comment.