rinq / rinq-go

A cross-language command bus and distributed ephemeral data store.
Other
17 stars 1 forks source link

Do not return `NotFoundError` from `Revision.Refresh()` #155

Closed jmalloc closed 6 years ago

jmalloc commented 7 years ago

This is an API change which simplifies the app logic for handling errors from refresh.

As it stands, only remotesession.revision.Refresh() ever returns NotFoundError, localsession.revision.Refresh() always returns a revisions.Closed value.

After this change, any error returned by Revision.Refresh() is guaranteed not to be a Rinq domain error, only an underlying transport error, timeout, etc.