diff --git a/src/server/srv.rs b/src/server/srv.rs index 6bb64ee2e..c5aca7570 100644 --- a/src/server/srv.rs +++ b/src/server/srv.rs @@ -4,7 +4,7 @@ use std::time::Duration; use std::{io, net, thread}; use actix::{ - fut, signal, Actor, ActorContext, ActorFuture, Addr, Arbiter, AsyncContext, Context, + fut, signal, Actor, ActorFuture, Addr, Arbiter, AsyncContext, Context, ContextFutureSpawner, Handler, Response, StreamHandler, System, WrapFuture, }; @@ -617,9 +617,7 @@ impl Handler for HttpServer { /// Commands from accept threads impl StreamHandler for HttpServer { - fn handle( - &mut self, msg: Result, ()>, ctx: &mut Context, - ) { + fn handle(&mut self, msg: Result, ()>, _: &mut Context) { match msg { Ok(Some(ServerCommand::WorkerDied(idx, socks))) => { let mut found = false; @@ -667,7 +665,7 @@ impl StreamHandler for HttpServer { self.workers.push((new_idx, addr)); } } - _ => ctx.stop(), + _ => (), } } }