diff --git a/ntex-server/src/server.rs b/ntex-server/src/server.rs index c9d8a44f..5f860b40 100644 --- a/ntex-server/src/server.rs +++ b/ntex-server/src/server.rs @@ -38,7 +38,7 @@ impl Server { } /// Send item to worker pool - pub fn process(&mut self, item: T) -> Result<(), T> { + pub fn process(&self, item: T) -> Result<(), T> { if self.shared.paused.load(Ordering::Acquire) { Err(item) } else if let Err(e) = self.cmd.try_send(ServerCommand::Item(item)) {