This commit is contained in:
Chris Lu
2020-05-12 08:48:00 -07:00
parent 4b7fa31468
commit 2f243f5b0b
4 changed files with 33 additions and 33 deletions

View File

@@ -57,8 +57,8 @@ func (broker *MessageBroker) Publish(stream messaging_pb.SeaweedMessaging_Publis
return fmt.Errorf("channel is already closed")
}
tl := broker.topicLocks.RequestLock(tp, topicConfig, true)
defer broker.topicLocks.ReleaseLock(tp, true)
tl := broker.topicManager.RequestLock(tp, topicConfig, true)
defer broker.topicManager.ReleaseLock(tp, true)
md5hash := md5.New()
// process each message