Skip to content

fix: correct QuoteContext cache expiry checks#518

Open
kallydev wants to merge 1 commit intolongbridge:mainfrom
kallydev:fix/cache-expires
Open

fix: correct QuoteContext cache expiry checks#518
kallydev wants to merge 1 commit intolongbridge:mainfrom
kallydev:fix/cache-expires

Conversation

@kallydev
Copy link
Copy Markdown

The previous logic used the wrong comparison between deadline and Instant::now(). Before expiry, it bypassed the cache and refetched on every call, sliding the deadline forward each time. After expiry, it kept returning the stale entry for the lifetime of the QuoteContext.

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