Skip to content

Instantly share code, notes, and snippets.

@davisp
Created January 23, 2012 01:03
Show Gist options
  • Save davisp/1659770 to your computer and use it in GitHub Desktop.
Save davisp/1659770 to your computer and use it in GitHub Desktop.
-module(couch_events_kv_dyn).
-export([lookup/1]).
lookup(<<"channel_name_1">>) -> GenServerPid1;
lookup(<<"other_channel_name">>) -> OtherPidOfGenServer;
%%
%% couch_events_kv dynamically adds function clauses to this
%% dynamic module and then reloads it to update the KV
%% information.
%%
lookup(_) -> undefined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment