Browse Source

The StopPublishing method must have pointer receiver (fixes #34).

pull/36/head
Rafal Zajac 4 years ago
parent
commit
8ea058e393
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      publish.go

+ 1
- 1
publish.go View File

@ -212,7 +212,7 @@ func (publisher *Publisher) Publish(
// StopPublishing stops the publishing of messages.
// The publisher should be discarded as it's not safe for re-use
func (publisher Publisher) StopPublishing() {
func (publisher *Publisher) StopPublishing() {
publisher.chManager.channel.Close()
publisher.chManager.connection.Close()
}


Loading…
Cancel
Save