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

Refactor the API #2

Merged

Conversation

FlorianLoch
Copy link
Member

After playing around with the first draft some shortcomings became obvious.

So I rewrote the API to allow for concurrent access to the dataset by sharing the storage instance and therefore the already implemented set of locks.

IMHO this also simplifies the API but having to declare the common options just once.

…et by sharing the `storage` instance, simplifies the API too
@FlorianLoch FlorianLoch requested a review from a team March 1, 2024 16:45
options.go Outdated Show resolved Hide resolved
options.go Show resolved Hide resolved
Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

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

LGTM

@FlorianLoch
Copy link
Member Author

Thanks for reviewing 😊

@FlorianLoch FlorianLoch merged commit eea907a into main Mar 7, 2024
1 check passed
@FlorianLoch FlorianLoch deleted the rework-api-to-allow-concurrent-updating-and-querying branch March 7, 2024 08:34
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