Skip to content

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.

break import cycle

Chris Luef908e166bf3
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go
index 01df6a38ac..7a367bfd98 100644
--- a/weed/wdclient/masterclient.go
+++ b/weed/wdclient/masterclient.go
@@ -5,7 +5,6 @@ import (
"math/rand"
"time"
- "github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/util"
"google.golang.org/grpc"
@@ -152,7 +151,7 @@ func (mc *MasterClient) tryConnectToMaster(master string) (nextHintedLeader stri
}
func (mc *MasterClient) WithClient(fn func(client master_pb.SeaweedClient) error) error {
- return util.Retry("master grpc", filer.ReadWaitTime, func() error {
+ return util.Retry("master grpc", 6*time.Second, func() error {
for mc.currentMaster == "" {
time.Sleep(3 * time.Second)
}