Skip to content

x.sessions: change session Store interface to use results instead of options - #20796

Merged
spytheman merged 2 commits into
vlang:masterfrom
Casper64:xsessions-db-store-options-to-result
Feb 12, 2024
Merged

spytheman merged 2 commits into
vlang:masterfrom
Casper64:xsessions-db-store-options-to-result

Conversation

@Casper64

Copy link
Copy Markdown
Contributor

Change the session store implementation to use results instead of options. This way (database) errors can be propagated and handled by the end users instead of forcing a session store to handle the error.

Could not find any reason why the db_store_test failed very rarely (see pr checks of 20774). Adding error propagation will also help debug future issues.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman
spytheman merged commit 8c1ead5 into vlang:master Feb 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