fix compilation

This commit is contained in:
chrislu
2023-09-19 16:22:41 -07:00
parent 440ebd7b6d
commit 411bdda08d
2 changed files with 4 additions and 4 deletions

View File

@@ -2,13 +2,13 @@ package pub_client
import (
"fmt"
"github.com/seaweedfs/seaweedfs/weed/mq/broker"
"github.com/seaweedfs/seaweedfs/weed/mq/balancer"
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
)
func (p *TopicPublisher) Publish(key, value []byte) error {
hashKey := util.HashToInt32(key) % broker.MaxPartitionCount
hashKey := util.HashToInt32(key) % balancer.MaxPartitionCount
if hashKey < 0 {
hashKey = -hashKey
}