Skip to content

Commit

Permalink
Unpause the topic when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelyou committed May 11, 2018
1 parent 2bf2517 commit 90a4f63
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nsqd/nsqd.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,6 @@ func (n *NSQD) LoadMetadata() error {
continue
}
topic := n.GetTopic(t.Name)
if t.Paused {
topic.Pause()
}

for _, c := range t.Channels {
if !protocol.IsValidChannelName(c.Name) {
Expand All @@ -372,7 +369,9 @@ func (n *NSQD) LoadMetadata() error {
channel.Pause()
}
}
topic.UnPause()
if !t.Paused {
topic.UnPause()
}
}
return nil
}
Expand Down

0 comments on commit 90a4f63

Please sign in to comment.