aboutsummaryrefslogtreecommitdiff
path: root/weed/mq/client/pub_client/publish.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mq/client/pub_client/publish.go')
-rw-r--r--weed/mq/client/pub_client/publish.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/mq/client/pub_client/publish.go b/weed/mq/client/pub_client/publish.go
index de4714831..9495e380c 100644
--- a/weed/mq/client/pub_client/publish.go
+++ b/weed/mq/client/pub_client/publish.go
@@ -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
}