mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
every 17 minutes instead of seconds
TODO: make this configurable
This commit is contained in:
parent
6b08db65b0
commit
7f6fb9ffd0
|
@ -184,7 +184,6 @@ func (ms *MasterServer) startAdminScripts() {
|
|||
|
||||
commandEnv := shell.NewCommandEnv(shellOptions)
|
||||
|
||||
|
||||
reg, _ := regexp.Compile(`'.*?'|".*?"|\S+`)
|
||||
|
||||
go commandEnv.MasterClient.KeepConnectedToMaster()
|
||||
|
@ -192,7 +191,7 @@ func (ms *MasterServer) startAdminScripts() {
|
|||
go func() {
|
||||
commandEnv.MasterClient.WaitUntilConnected()
|
||||
|
||||
c := time.Tick(17 * time.Second)
|
||||
c := time.Tick(17 * time.Minute)
|
||||
for _ = range c {
|
||||
if ms.Topo.IsLeader() {
|
||||
for _, line := range scriptLines {
|
||||
|
|
Loading…
Reference in a new issue