优化全局数据存储方式,以节点 id 为 key 保存相关数据;修复节点下线监听未关闭问题
This commit is contained in:
@@ -42,7 +42,7 @@ func New(port uint16, readTimeout time.Duration) (*Server, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *Server) Close() {
|
||||
func (s *Server) Stop() {
|
||||
s.cancel()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user