Skip to content

Commit 75b921e

Browse files
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Mohammad Ashar Khan <140482588+asharkhan3101@users.noreply.github.com>
1 parent 0e730a3 commit 75b921e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/epp/framework/interface/plugin/plugin_state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const (
3232
// request's data has not been read/written within this duration it is reaped in the next cleanup
3333
// cycle. It applies when no process-wide (SetDefaultStalenessThreshold) override is set.
3434
DefaultStalenessThreshold = time.Minute * 5
35-
// cleanupInterval defines the periodic interval that the cleanup go routine uses to check for stale data.
35+
// cleanupInterval defines the periodic interval that the cleanup goroutine uses to check for stale data.
3636
cleanupInterval = time.Minute
3737
)
3838

@@ -41,8 +41,8 @@ const (
4141
var defaultStalenessThreshold = DefaultStalenessThreshold
4242

4343
// SetDefaultStalenessThreshold overrides the process-wide default staleness threshold used by
44-
// PluginState instances that do not set an explicit WithStalenessThreshold. It is intended to be
45-
// called once at startup, before any plugin is instantiated. Non-positive values are ignored.
44+
// PluginState instances created via NewPluginState. It is intended to be called once at startup,
45+
// before any plugin is instantiated. Non-positive values are ignored.
4646
func SetDefaultStalenessThreshold(d time.Duration) {
4747
if d > 0 {
4848
defaultStalenessThreshold = d

0 commit comments

Comments
 (0)