Skip to content

Use ListWithContextFunc and WatchFuncWithContext - #651

Merged
tamalsaha merged 1 commit into
masterfrom
fix-listwatch-lint
Oct 12, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
fix-listwatch-lint

Conversation

@tamalsaha

Copy link
Copy Markdown
Contributor

Fixes the staticcheck SA1019 lint errors: cache.ListWatch.ListFunc and WatchFunc are deprecated in favor of ListWithContextFunc and WatchFuncWithContext. The callbacks now use the context passed in by the informer instead of the captured outer context.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 23b10bd into master Oct 12, 2026
4 checks passed
@tamalsaha
tamalsaha deleted the fix-listwatch-lint branch October 12, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant