Skip to content

fix: pop locks from instance state after cache value is loaded - #22

Open
BobTheBuidler wants to merge 1 commit into
ryananguiano:masterfrom
BobTheBuidler:patch-4
Open

BobTheBuidler wants to merge 1 commit into
ryananguiano:masterfrom
BobTheBuidler:patch-4

Conversation

@BobTheBuidler

Copy link
Copy Markdown

After the cache value is loaded, the asyncio.Lock is not used again. This PR pops it from the instance state after loading to keep resource consumption to a minimum.

After the cache value is loaded, the asyncio.Lock is not used again. This PR pops it from the instance state after loading to keep resource consumption to a minimum.
@ryananguiano

Copy link
Copy Markdown
Owner

why would you be popping the lock while still inside the async with self.get_lock(instance): block?

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.

2 participants