-
-
Notifications
You must be signed in to change notification settings - Fork 74
Introduce AtomicErr (close #175) #176
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
Conversation
Sure, this addresses my concerns. Personally, I'd drop the recommendation of synthesizing rollback, since it's error-prone especially for some providers, but I'm also not particularly bothered. Thanks a ton for addressing this, I appreciate it. |
I will make the language a little more cautious about rollback then. |
One last thought... should it be called |
I think that |
Sounds good, thanks both! |
Is this pattern production ready? I upgraded my libdns ovh package with SetRecords atomatic behavior, I used the AtomicErr type. |
Ok, I've tagged v1.1.0 just now, so you should be able to use that instead. Hopefully @mholt doesn't mind :) |
Not at all, thank you for beating me to it! |
This introduces AtomicErr, and clarifies the documentation regarding atomicity. It is no longer expected/required for SetRecords, but encouraged, and AtomicErr can be returned to inform callers of the state of their zone.