Skip to content

Commit 33e5936

Browse files
Remove unnecessary logging refresh time (#133)
1 parent 03ac44f commit 33e5936

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal/loader/configuration_setting_loader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ func (csl *ConfigurationSettingLoader) CheckPageETags(ctx context.Context, eTags
365365
settingsClient := csl.SettingsClient
366366
if settingsClient == nil {
367367
settingsClient = &EtagSettingsClient{
368-
etags: eTags,
369-
refreshInterval: csl.Spec.Configuration.Refresh.Interval,
368+
etags: eTags,
370369
}
371370
}
372371

internal/loader/settings_client.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ type SettingsResponse struct {
2222
}
2323

2424
type EtagSettingsClient struct {
25-
etags map[acpv1.ComparableSelector][]*azcore.ETag
26-
refreshInterval string
25+
etags map[acpv1.ComparableSelector][]*azcore.ETag
2726
}
2827

2928
type SentinelSettingsClient struct {
@@ -86,7 +85,7 @@ func (s *EtagSettingsClient) GetSettings(ctx context.Context, client *azappconfi
8685
}
8786
}
8887

89-
klog.V(3).Infof("There's no change to the selected key values, just exit and revisit them after %s", s.refreshInterval)
88+
klog.V(3).Infof("There's no change to the selected key values, just exit and revisit them after refresh interval")
9089
// no change in the settings, return nil etags
9190
return settingsResponse, nil
9291
}

0 commit comments

Comments
 (0)