mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-28 00:42:58 +01:00
use u64 for shutdown_timeout
This commit is contained in:
parent
a14f612382
commit
87bc3dacd9
@ -1,5 +1,12 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.5.1] - 2019-05-18
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* ServerBuilder::shutdown_timeout() accepts u64
|
||||||
|
|
||||||
|
|
||||||
## [0.5.0] - 2019-05-12
|
## [0.5.0] - 2019-05-12
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-server"
|
name = "actix-server"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix server - General purpose tcp server"
|
description = "Actix server - General purpose tcp server"
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
|
@ -128,8 +128,8 @@ impl ServerBuilder {
|
|||||||
/// dropped.
|
/// dropped.
|
||||||
///
|
///
|
||||||
/// By default shutdown timeout sets to 30 seconds.
|
/// By default shutdown timeout sets to 30 seconds.
|
||||||
pub fn shutdown_timeout(mut self, sec: u16) -> Self {
|
pub fn shutdown_timeout(mut self, sec: u64) -> Self {
|
||||||
self.shutdown_timeout = Duration::from_secs(u64::from(sec));
|
self.shutdown_timeout = Duration::from_secs(sec);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user