Github user iilyak commented on a diff in the pull request:
https://github.com/apache/couchdb-chttpd/pull/115#discussion_r60447509
--- Diff: src/chttpd_auth_cache.erl ---
@@ -95,7 +95,8 @@ get_from_cache(UserName) ->
%% gen_server callbacks
init([]) ->
- {ok, #state{changes_pid = spawn_changes(0)}}.
+ self() ! {start_listener, 0},
--- End diff --
Frankly I would choose `#2` in this case as well but I would have to
refactor the code a little bit. This would slow down the review and would
require writing a test suite.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---