Skip to content

Conversation

arseniocosta1
Copy link

Description

Fixes #33

Moved the semaphore release to a deferred statement to ensure it is always called.
- Added a defer function to ensure next fetch is queued if a panic occurs
- Resets the lastFetch time to zero if a panic is recovered
- Preserves existing behavior when no panic occurs
@arseniocosta1 arseniocosta1 changed the title feat: properly defer the release of cache feat: properly defer the release of the cache semaphore Sep 22, 2024
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.

Unreleased semaphore blocks httprc indefinitely if a Transform panics

1 participant