Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pecigonzalo
Copy link
Owner

We require storing the NextToken so we can continue the next events call from the last step. This will return us duplicate events, which we check agains the LRU cache to decide if we print them or not. To be on the safe side, we increase the cache to hold 2x the number of maximum events returned by the get events call.

@pecigonzalo pecigonzalo merged commit 400c8b8 into main Jul 21, 2023
@pecigonzalo pecigonzalo deleted the fix/lru-cache-follow branch July 21, 2023 15:36
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