mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 01:23:00 +08:00
added sleep
This commit is contained in:
parent
f0037fb880
commit
02b7025b28
1 changed files with 4 additions and 0 deletions
|
@ -3,8 +3,10 @@ package controller
|
|||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/gravitl/netmaker/database"
|
||||
|
@ -104,7 +106,9 @@ func keyUpdate(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
for _, node := range nodes {
|
||||
fmt.Println("updating node ", node.Name, " for a key update")
|
||||
runUpdates(&node, true)
|
||||
time.Sleep(time.Second << 10)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue