1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 15:40:36 +02:00

use u64 for shutdown_timeout

This commit is contained in:
Nikolay Kim
2019-05-18 10:56:41 -07:00
parent a14f612382
commit 87bc3dacd9
3 changed files with 10 additions and 3 deletions

View File

@ -128,8 +128,8 @@ impl ServerBuilder {
/// dropped.
///
/// By default shutdown timeout sets to 30 seconds.
pub fn shutdown_timeout(mut self, sec: u16) -> Self {
self.shutdown_timeout = Duration::from_secs(u64::from(sec));
pub fn shutdown_timeout(mut self, sec: u64) -> Self {
self.shutdown_timeout = Duration::from_secs(sec);
self
}