mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
fix 空指针引用
This commit is contained in:
@@ -10,7 +10,7 @@ type Handler interface {
|
||||
}
|
||||
|
||||
func GetMsgHandler(msg NodeMessage) Handler {
|
||||
if msg.Type == constants.MsgTypeGetLog {
|
||||
if msg.Type == constants.MsgTypeGetLog || msg.Type == constants.MsgTypeRemoveLog {
|
||||
return &Log{
|
||||
msg: msg,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user