This commit is contained in:
crusader 2018-03-21 19:56:34 +09:00
parent 9c9b7882be
commit de5f6de361

View File

@ -2,7 +2,6 @@ package redis
import (
"encoding/json"
"fmt"
"sync"
"git.loafle.net/commons_go/logging"
@ -127,7 +126,7 @@ func listenSubscriptions(s *subscribers) {
case redis.Message:
if h, ok := s.subHandlers[v.Channel]; ok {
if message, err := unmarshalMessage(v.Data); nil != err {
logging.Logger().Error(fmt.Sprintf("Subscriber Unmarshal error:%v", err))
logging.Logger().Errorf("Subscriber Unmarshal error:%v", err)
break
} else {
h.OnSubscribe(v.Channel, message)