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

Add storage.TryAdd and TryCommit methods #2723

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

dominikschulz
Copy link
Member

@dominikschulz dominikschulz commented Nov 24, 2023

This PR adds new Try methods to the RCS backends. Each of the new methods will attempt to Add, Commit or Push but ignore any non-critical errors.

This simplifies the call sites since they no longer have to have lenghty error handling.

@dominikschulz dominikschulz marked this pull request as ready for review November 25, 2023 16:01
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
AnomalRoil
AnomalRoil previously approved these changes Nov 25, 2023
Copy link
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

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

Beside the Linter issues and the Fossil errors and logs, LGTM

internal/backend/storage/fossilfs/fossil.go Outdated Show resolved Hide resolved
internal/backend/storage/fossilfs/fossil.go Outdated Show resolved Hide resolved
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Copy link
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

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

LGTM

@dominikschulz dominikschulz merged commit 8dfd7bd into gopasspw:master Nov 25, 2023
@dominikschulz dominikschulz deleted the fix/try branch November 25, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code hygiene
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants