Skip to content
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: await session state updates #97

Merged

Conversation

TimoGlastra
Copy link
Collaborator

Some state updates (set, delete) were not awaited. When updating the in memory session manager to one that uses persistance storage we were running into issues were we would close our database session (as the call to this library is finished), but then a write would still happen as the updates to the session were not awaited.

Were these awaits left out on purpose?

@nklomp
Copy link
Contributor

nklomp commented Mar 12, 2024

It was on purpose, to ensure any calling code would not be blocking on the session management itself. But for now let's indeed await. It needs some refactoring, simplification anyway soon.

@nklomp nklomp merged commit 5218c5c into Sphereon-Opensource:develop Mar 12, 2024
1 check passed
@nklomp
Copy link
Contributor

nklomp commented Mar 12, 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.

2 participants