Skip to content

catch failed watch callbacks #19

@sanoel

Description

@sanoel

If the watch handler fails, e.g., writes made when syncing with a remote server, we should not commit the change and should retry the callback with an exponential backoff. Implement try/catch around the watch callback, and if caught, print an error message and revert the _rev in the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions