ing
This commit is contained in:
parent
9c9b7882be
commit
de5f6de361
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user