Skip to content

Commit 3da8fc4

Browse files
Gerasimos Maropoulostmrts
Gerasimos Maropoulos
authored andcommitted
Nothing special on Subscription (#5)
1 parent 3d2d78a commit 3da8fc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

messaging/publish_subscribe.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ type Subscription struct {
2727
}
2828

2929
func (s *Subscription) Publish(msg Message) error {
30-
if _, ok := ch; !ok {
30+
if _, ok := s.ch; !ok {
3131
return errors.New("Topic has been closed")
3232
}
3333

34-
ch <- msg
34+
s.ch <- msg
3535

3636
return nil
3737
}

0 commit comments

Comments
 (0)