Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: warning on failure to close node cache properly #514

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

odesenfans
Copy link
Contributor

Problem: a warning occurs in the tests because of an improper cleanup of the Redis client object.

Solution: make the NodeCache class an asynchronous context manager and make it clean up after itself.

@odesenfans odesenfans force-pushed the od-use-node-cache-as-async-context-manager branch 2 times, most recently from 183a494 to 5bc35e2 Compare November 2, 2023 16:22
Problem: a warning occurs in the tests because of an improper cleanup of
the Redis client object.

Solution: make the NodeCache class an asynchronous context manager and
make it clean up after itself.
@odesenfans odesenfans force-pushed the od-use-node-cache-as-async-context-manager branch from 5bc35e2 to b6548fb Compare November 3, 2023 11:07
@odesenfans odesenfans merged commit 0e4a3ea into dev Nov 3, 2023
2 checks passed
@odesenfans odesenfans deleted the od-use-node-cache-as-async-context-manager branch November 3, 2023 11:13
hoh pushed a commit that referenced this pull request Dec 8, 2023
Problem: a warning occurs in the tests because of an improper cleanup of
the Redis client object.

Solution: make the NodeCache class an asynchronous context manager and
make it clean up after itself.
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