重构RPC逻辑

This commit is contained in:
marvzhang
2020-03-10 12:08:26 +08:00
parent ab33640a50
commit e5b4ac6310
13 changed files with 386 additions and 227 deletions

View File

@@ -11,7 +11,7 @@ type Handler interface {
}
func GetMsgHandler(msg entity.NodeMessage) Handler {
log.Infof("received msg , type is : %s", msg.Type)
log.Debugf("received msg , type is : %s", msg.Type)
if msg.Type == constants.MsgTypeGetLog || msg.Type == constants.MsgTypeRemoveLog {
// 日志相关
return &Log{