We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d717978 commit 82fc76dCopy full SHA for 82fc76d
messaging/publish_subscribe.md
@@ -27,7 +27,7 @@ type Subscription struct {
27
}
28
29
func (s *Subscription) Publish(msg Message) error {
30
- if _, ok := s.ch; !ok {
+ if _, ok := <-s.ch; !ok {
31
return errors.New("Topic has been closed")
32
33
0 commit comments