-
Notifications
You must be signed in to change notification settings - Fork 210
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: remove racy endpoint PENDING_ACCEPTED_ITEMS_ENDPOINT for SESSION_STATUS_ENDPOINT #4150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's an improvement, but one problem with this is that the result can't be cached.
If the response included some flag if this session is closed or not the it could (when closed). Then just getting the block, without awaiting it would be entirely redundant.
06fb724
to
00e44e0
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4150 +/- ##
==========================================
- Coverage 58.30% 58.15% -0.15%
==========================================
Files 192 192
Lines 42757 43161 +404
==========================================
+ Hits 24928 25100 +172
- Misses 17829 18061 +232 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Do we actually need to cache this? I'd imagine to only use this endpoint for the last session we want to fetch. I think that's lower complexity overall than trying to adapt the cache to potentially non-final responses. EDIT: otherwise we'd also need to optionally return signatures here to avoid fetching from multiple guardians, which would make this even more complex and would possibly require a new query strategy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
00e44e0
to
37cf9f3
Compare
Right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving based on past approvals
Successfully created backport PR for |
Use fedimint#4150 to avoid waiting for the final session to finish.
I get the feeling we should also document when an API was introduced and enforce that via CI somehow. Otherwise it will be fairly hard to figure out later on. |
Use fedimint#4150 to avoid waiting for the final session to finish.
Use fedimint#4150 to avoid waiting for the final session to finish.
Use fedimint#4150 to avoid waiting for the final session to finish.
No description provided.