From e9f3541726305cc64b71e4b7ada303967df53519 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 19 Jul 2024 22:14:02 +0200 Subject: [PATCH] No need to mut self --- ntex-server/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {