Update api.go

Co-authored-by: Alan Bernstein <alanaaronbernstein@gmail.com>
This commit is contained in:
Samir Patel 2021-06-14 11:12:12 -05:00 committed by GitHub
parent 8bf472bb75
commit 11207fc589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
api.go
View file

@ -960,7 +960,7 @@ func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, e
if api.usageCache.lastCalcDuration < (time.Second * 5) {
err := api.ResetUsageCache()
if err != nil {
api.server.logger.Infof("could not reset cache: %s", err)
api.server.logger.Infof("could not reset usageCache: %s", err)
}
}