Created
July 27, 2015 11:18
-
-
Save rnewson/b9efd4f45e1c62315816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cassim_metadata_cache.erl b/src/cassim_metadata_cache.erl | |
index 920f748..ceb6c9e 100644 | |
--- a/src/cassim_metadata_cache.erl | |
+++ b/src/cassim_metadata_cache.erl | |
@@ -162,6 +162,8 @@ listen_for_changes(Since) -> | |
fabric:changes(DbName, fun changes_callback/2, Since, Args). | |
+changes_callback(waiting_for_updates, Acc) -> | |
+ {ok, Acc}; | |
changes_callback(start, Since) -> | |
{ok, Since}; | |
changes_callback({stop, EndSeq}, _) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/chttpd_auth_cache.erl b/src/chttpd_auth_cache.erl | |
index 8caa112..61ee472 100644 | |
--- a/src/chttpd_auth_cache.erl | |
+++ b/src/chttpd_auth_cache.erl | |
@@ -135,6 +135,8 @@ listen_for_changes(Since) -> | |
}, | |
fabric:changes(dbname(), CBFun, Since, Args). | |
+changes_callback(waiting_for_updates, Acc) -> | |
+ {ok, Acc}; | |
changes_callback(start, Since) -> | |
{ok, Since}; | |
changes_callback({stop, EndSeq, _Pending}, _) -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment