mirror of https://github.com/status-im/consul.git
Apply suggestions from code review
Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>
This commit is contained in:
parent
ae3457b96a
commit
1ddee0680c
|
@ -48,7 +48,7 @@ func TestStateStore_Usage_NodeUsage_Delete(t *testing.T) {
|
|||
func TestStateStore_Usage_KVUsage(t *testing.T) {
|
||||
s := testStateStore(t)
|
||||
|
||||
// No nodes have been registered, and thus no usage entry exists
|
||||
// No keys have been registered, and thus no usage entry exists
|
||||
idx, usage, err := s.KVUsage()
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, idx, uint64(0))
|
||||
|
|
|
@ -149,7 +149,7 @@ func (u *UsageMetricsReporter) Run(ctx context.Context) {
|
|||
}
|
||||
|
||||
func (u *UsageMetricsReporter) runOnce() {
|
||||
u.logger.Debug("Starting usage run")
|
||||
u.logger.Trace("Starting usage run")
|
||||
state := u.stateProvider.State()
|
||||
|
||||
_, nodeUsage, err := state.NodeUsage()
|
||||
|
@ -171,7 +171,7 @@ func (u *UsageMetricsReporter) runOnce() {
|
|||
|
||||
_, kvUsage, err := state.KVUsage()
|
||||
if err != nil {
|
||||
u.logger.Warn("failed to retrieve kv entries from state store", "error", err)
|
||||
u.logger.Warn("failed to retrieve kv entry usage from state store", "error", err)
|
||||
}
|
||||
|
||||
u.emitKVUsage(kvUsage)
|
||||
|
|
Loading…
Reference in New Issue