fix publisher

This commit is contained in:
chrislu
2024-01-15 00:20:21 -08:00
parent fa59a5d67e
commit 026c54a9bb
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ func (p *TopicPublisher) Publish(key, value []byte) error {
if hashKey < 0 {
hashKey = -hashKey
}
publishClient, found := p.partition2Broker.Floor(hashKey, hashKey)
publishClient, found := p.partition2Broker.Floor(hashKey+1, hashKey+1)
if !found {
return fmt.Errorf("no broker found for key %d", hashKey)
}