comments(rpcserver): add Stop method to gracefully stop servers (#3965)
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
d0bfdd4e77
commit
fb84accb14
|
|
@ -152,6 +152,7 @@ func (s *server) OnNotify(data *config.DynconfigData) {
|
|||
}
|
||||
}
|
||||
|
||||
// stop peer server and download server
|
||||
func (s *server) Stop() {
|
||||
s.peerServer.GracefulStop()
|
||||
s.downloadServer.GracefulStop()
|
||||
|
|
|
|||
Loading…
Reference in New Issue