Skip to content

Commit

Permalink
Merge a952cf8 into 48ae07e
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Oct 9, 2019
2 parents 48ae07e + a952cf8 commit dda4664
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hub/subscriber.go
Expand Up @@ -53,7 +53,10 @@ func (s *Subscriber) IsAuthorized(u *Update) bool {
func (s *Subscriber) IsSubscribed(u *Update) bool {
for _, ut := range u.Topics {
if match, ok := s.matchCache[ut]; ok {
return match
if match {
return true
}
continue
}

for _, rt := range s.RawTopics {
Expand Down

0 comments on commit dda4664

Please sign in to comment.