zhangzengfei
2023-04-03 7e5a97543f762a47b5f122c2a6458dd67fbf139c
set default send/recv timeout to 60s
1个文件已修改
4 ■■■■ 已修改文件
micronode.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
micronode.go
@@ -27,7 +27,7 @@
}
func NewMicroNode(ctx context.Context,q chan os.Signal, serverId string, reg *RegisterInfo, fnLog func(v ...interface{})) (*MicroNode, error){
    conf := NewConfig(KEY_REGISTER,512,5,5000,5000,2000, fnLog)
    conf := NewConfig(KEY_REGISTER,512,5,60000,60000,2000, fnLog)
    handle, err := Register(ctx, q, conf, reg)
    if err != nil {
        return nil, err
@@ -277,4 +277,4 @@
    if ms.handle != nil {
        ms.handle.Free()
    }
}
}