Browse Source

notify blocked

pull/80/head
wagslane 4 years ago
parent
commit
3bc827fdab
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      publish.go

+ 2
- 0
publish.go View File

@ -113,6 +113,7 @@ func NewPublisher(url string, config Config, optionFuncs ...func(*PublisherOptio
} }
go publisher.startNotifyFlowHandler() go publisher.startNotifyFlowHandler()
go publisher.startNotifyBlockedHandler()
go publisher.handleRestarts() go publisher.handleRestarts()
@ -123,6 +124,7 @@ func (publisher *Publisher) handleRestarts() {
for err := range publisher.chManager.notifyCancelOrClose { for err := range publisher.chManager.notifyCancelOrClose {
publisher.options.Logger.InfoF("successful publisher recovery from: %v", err) publisher.options.Logger.InfoF("successful publisher recovery from: %v", err)
go publisher.startNotifyFlowHandler() go publisher.startNotifyFlowHandler()
go publisher.startNotifyBlockedHandler()
if publisher.notifyReturnChan != nil { if publisher.notifyReturnChan != nil {
go publisher.startNotifyReturnHandler() go publisher.startNotifyReturnHandler()
} }


Loading…
Cancel
Save