Expose TetServer::stop() method (#381)

This commit is contained in:
Nikolay Kim 2024-07-16 21:03:38 +02:00 committed by GitHub
parent 1331a6eadb
commit 1c5ab68df6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Changes # Changes
## [2.2.0] - 2024-07-16
* Expose TetServer::stop() method
## [2.1.0] - 2024-06-27 ## [2.1.0] - 2024-06-27
* Shutdown service on error and on worker shutdown * Shutdown service on error and on worker shutdown

View file

@ -1,6 +1,6 @@
[package] [package]
name = "ntex-server" name = "ntex-server"
version = "2.1.0" version = "2.2.0"
authors = ["ntex contributors <team@ntex.rs>"] authors = ["ntex contributors <team@ntex.rs>"]
description = "Server for ntex framework" description = "Server for ntex framework"
keywords = ["network", "framework", "async", "futures"] keywords = ["network", "framework", "async", "futures"]

View file

@ -118,7 +118,7 @@ impl TestServer {
} }
/// Stop http server /// Stop http server
fn stop(&mut self) { pub fn stop(&self) {
self.system.stop(); self.system.stop();
} }