SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix compilation
chrislu411bdda08dc4
diff --git a/weed/mq/client/pub_client/publish.go b/weed/mq/client/pub_client/publish.goindex de4714831a..9495e380c6 100644--- a/weed/mq/client/pub_client/publish.go+++ b/weed/mq/client/pub_client/publish.go@@ -2,13 +2,13 @@ package pub_clientimport ("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.MaxPartitionCountif hashKey < 0 {hashKey = -hashKey}diff --git a/weed/mq/client/pub_client/publisher.go b/weed/mq/client/pub_client/publisher.goindex 7073457f31..bf1711e38e 100644--- a/weed/mq/client/pub_client/publisher.go+++ b/weed/mq/client/pub_client/publisher.go@@ -2,7 +2,7 @@ package pub_clientimport ("github.com/rdleal/intervalst/interval"- "github.com/seaweedfs/seaweedfs/weed/mq/broker"+ "github.com/seaweedfs/seaweedfs/weed/mq/balancer""github.com/seaweedfs/seaweedfs/weed/pb/mq_pb""google.golang.org/grpc""google.golang.org/grpc/credentials/insecure"@@ -46,7 +46,7 @@ func (p *TopicPublisher) Connect(bootstrapBroker string) error {func (p *TopicPublisher) Shutdown() error {- if clients, found := p.partition2Broker.AllIntersections(0, broker.MaxPartitionCount); found {+ if clients, found := p.partition2Broker.AllIntersections(0, balancer.MaxPartitionCount); found {for _, client := range clients {client.CloseSend()}