comments(rpcserver): add Stop method to gracefully stop servers (#3965)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2025-04-17 18:27:34 +08:00 committed by GitHub
parent d0bfdd4e77
commit fb84accb14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ func (s *server) OnNotify(data *config.DynconfigData) {
} }
} }
// stop peer server and download server
func (s *server) Stop() { func (s *server) Stop() {
s.peerServer.GracefulStop() s.peerServer.GracefulStop()
s.downloadServer.GracefulStop() s.downloadServer.GracefulStop()