mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 15:00:43 +02:00
simplify a bit
This commit is contained in:
1 parent
0b00edfc3b
commit
e8b7d4ad64
1 file changed
+1
-3
@@ -36,9 +36,7 @@ func NewMasterClient(grpcDialOption grpc.DialOption, clientType string, clientHo
|
||||
}
|
||||
|
||||
func (mc *MasterClient) GetMaster() string {
|
||||
for mc.currentMaster == "" {
|
||||
time.Sleep(time.Duration(rand.Int31n(200)) * time.Millisecond)
|
||||
}
|
||||
mc.WaitUntilConnected()
|
||||
return mc.currentMaster
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user