mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
sleep between the gap of each execution
related to https://github.com/chrislusf/seaweedfs/issues/2476
This commit is contained in:
parent
2ba08afed1
commit
40ee9b4d7b
|
@ -261,8 +261,8 @@ func (ms *MasterServer) startAdminScripts() {
|
|||
go func() {
|
||||
commandEnv.MasterClient.WaitUntilConnected()
|
||||
|
||||
c := time.Tick(time.Duration(sleepMinutes) * time.Minute)
|
||||
for range c {
|
||||
for {
|
||||
time.Sleep(time.Duration(sleepMinutes) * time.Minute)
|
||||
if ms.Topo.IsLeader() {
|
||||
for _, line := range scriptLines {
|
||||
for _, c := range strings.Split(line, ";") {
|
||||
|
|
Loading…
Reference in a new issue