tmrts / go-patterns

Curated list of Go design patterns, recipes and idioms

Home Page:http://tmrts.com/go-patterns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-patterns/messaging/publish_subscribe.md

cuiyuan opened this issue · comments

https://github.com/tmrts/go-patterns/blob/master/messaging/publish_subscribe.md

 if _, ok := s.ch; !ok {
        return errors.New("Topic has been closed")
 }

assignment count mismatch: 2 = 1

@cuiyuan good catch, thanks! There was a missing arrow for channel reads which is now fixed 82fc76d