log change

This commit is contained in:
Gordon
2022-05-10 09:09:37 +08:00
parent c49b5f78bf
commit 9303096430
25 changed files with 28 additions and 47 deletions
+1 -2
View File
@@ -43,8 +43,7 @@ func (r *RPCServer) run() {
address := listenIP + ":" + strconv.Itoa(r.rpcPort)
listener, err := net.Listen("tcp", address)
if err != nil {
log.Error("", "fail to listening consumer failed ", err.Error(), address)
return
panic("listening err:" + err.Error() + r.rpcRegisterName)
}
defer listener.Close()
srv := grpc.NewServer()