mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
try test with usage always blocking on calc
This commit is contained in:
parent
108da005b7
commit
63300db1bd
1 changed files with 4 additions and 4 deletions
8
api.go
8
api.go
|
|
@ -949,10 +949,10 @@ func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, e
|
|||
api.usageCache.muRead.Lock()
|
||||
defer api.usageCache.muRead.Unlock()
|
||||
|
||||
var t time.Time
|
||||
if api.usageCache.lastUpdated == t {
|
||||
api.calculateUsage()
|
||||
}
|
||||
// var t time.Time
|
||||
// if api.usageCache.lastUpdated == t {
|
||||
api.calculateUsage()
|
||||
// }
|
||||
|
||||
if !remote {
|
||||
api.requestUsageOfNodes()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue