mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 15:21:02 +00:00
rename flag and add default value for flag
This commit is contained in:
parent
827b125c3c
commit
9beb3f0b3a
2 changed files with 1 additions and 2 deletions
1
api.go
1
api.go
|
|
@ -959,7 +959,6 @@ func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, e
|
|||
}
|
||||
|
||||
func (api *API) initUsageCache(refresh int) {
|
||||
fmt.Println("Init Usage Cache")
|
||||
api.usageCache = &usageCache{
|
||||
data: make(map[string]NodeUsage),
|
||||
refreshRateMins: refresh,
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ func (m *Command) Start() (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
go m.API.RefreshUsageCache(m.Config.DiskUsageRefreshRate)
|
||||
go m.API.RefreshUsageCache(m.Config.DiskUsage.RefreshRate)
|
||||
|
||||
_ = testhook.Opened(pilosa.NewAuditor(), m, nil)
|
||||
close(m.Started)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue