Add sleep to wait for holder to load

This commit is contained in:
Samir Patel 2021-05-27 13:33:20 -05:00 committed by Samir Patel
parent f6d7d1af39
commit 7799d7c680

1
api.go
View file

@ -1051,6 +1051,7 @@ func (api *API) RefreshUsageCache(refresh time.Duration) {
data: make(map[string]NodeUsage),
refreshInterval: refresh,
}
time.Sleep(30 * time.Second)
for {
fmt.Println(1)
api.calculateUsage()