matryer / vice

Go channels at horizontal scale (powered by message queues)
https://medium.com/@matryer/introducing-vice-go-channels-across-many-machines-bcac1147d7e2
Apache License 2.0
1.54k stars 79 forks source link

nats: inconsistency between Send and Receive methods #11

Closed cristaloleg closed 7 years ago

cristaloleg commented 7 years ago

When makePublisher completes with an error it returns new channel, but makeSubscriber returns new channel too, but returned value is ignored, and we return nil from Receive method, instead of new channel as Send does.