提交 214bb2bc authored 作者: Serhij S's avatar Serhij S

docfmt

上级 6cc6817e
...@@ -168,8 +168,8 @@ where ...@@ -168,8 +168,8 @@ where
self.supervisor.spawn(Builder::new().name(name), f)?; self.supervisor.spawn(Builder::new().name(name), f)?;
Ok(()) Ok(())
} }
/// Registers SIGINT and SIGTERM signals to a thread which terminates the controller with dummy /// Registers SIGINT and SIGTERM signals to a thread which terminates the controller with a
/// handler (see [`Controller::register_signals_with_shutdown_handler()`]). /// dummy handler (see [`Controller::register_signals_with_shutdown_handler()`]).
pub fn register_signals(&mut self, shutdown_timeout: Duration) -> Result<()> { pub fn register_signals(&mut self, shutdown_timeout: Duration) -> Result<()> {
self.register_signals_with_shutdown_handler(|_| {}, shutdown_timeout) self.register_signals_with_shutdown_handler(|_| {}, shutdown_timeout)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论