HttpServer::shutdown_timeout u16 to u64

Increase maximum graceful shutdown time from 18 hours.

For issue #848.
This commit is contained in:
Herbert Jones 2019-05-18 12:39:48 -05:00
parent e8c8626878
commit 986f6e366e
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ where
/// dropped.
///
/// 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.builder = Some(self.builder.take().unwrap().shutdown_timeout(sec));
self
}