This commit is contained in:
crusader 2017-09-27 16:14:19 +09:00
parent e69682ca44
commit 0e118b7f80

View File

@ -75,7 +75,7 @@ func (s *subscribers) listenSubscriptions() {
switch v := s.conn.Receive().(type) {
case redis.Message:
if h, ok := s.subHandlers[v.Channel]; ok {
h.OnSubscribe(string(v.Data))
h.OnSubscribe(v.Channel, string(v.Data))
}
break
case redis.Subscription: