liuxiaolong
2021-01-08 986c949195d1f50758602f198cae76d56c3b8d56
micronode.go
@@ -22,7 +22,7 @@
   SubCh       chan *MsgInfo
}
func NewMicroNode(ctx context.Context,q chan os.Signal, serverId string, reg *RegisterInfo, procInfo *ProcInfo,fnLog func(v ...interface{})) (*MicroNode, error){
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,100,100,100, fnLog)
   handle, err := Register(ctx, q, conf, reg)
   if err != nil {
@@ -33,7 +33,7 @@
      serverId: serverId,
      handle:   handle,
      reg:      reg,
      procInfo: procInfo,
      procInfo: &reg.Proc,
      fnLog:    fnLog,
      SubCh:    make(chan *MsgInfo, 512),
   }