It is safe to change feed.db after an error?
revington opened this issue · comments
I want to use follow to listen changes from a couchdb server.
If that server dies, I want to follow the changes from a replica.
Code is something like this:
feed.on('retry', function(){
feed.db = getTheNewServerToFollow();
});
Do you think it is correct? Do you think there is a better approach?