diff --git a/ntex-server/CHANGES.md b/ntex-server/CHANGES.md index 30631a7e..3587ccd8 100644 --- a/ntex-server/CHANGES.md +++ b/ntex-server/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [2.2.0] - 2024-07-16 + +* Expose TetServer::stop() method + ## [2.1.0] - 2024-06-27 * Shutdown service on error and on worker shutdown diff --git a/ntex-server/Cargo.toml b/ntex-server/Cargo.toml index 4c3dfd84..4f876472 100644 --- a/ntex-server/Cargo.toml +++ b/ntex-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-server" -version = "2.1.0" +version = "2.2.0" authors = ["ntex contributors "] description = "Server for ntex framework" keywords = ["network", "framework", "async", "futures"] diff --git a/ntex-server/src/net/test.rs b/ntex-server/src/net/test.rs index 0e3b0c63..e569b664 100644 --- a/ntex-server/src/net/test.rs +++ b/ntex-server/src/net/test.rs @@ -118,7 +118,7 @@ impl TestServer { } /// Stop http server - fn stop(&mut self) { + pub fn stop(&self) { self.system.stop(); }