Skip to content

Instantly share code, notes, and snippets.

@boorad
Created February 10, 2009 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save boorad/61216 to your computer and use it in GitHub Desktop.
Save boorad/61216 to your computer and use it in GitHub Desktop.
handle_call({insert, Value}, _From, State) ->
NextNode = node_manager:next_node(?METHOD),
NextDb = gen_server:call(NextNode, {next_db, ?METHOD}),
Reply = gen_server:call(NextDb, {insert, null, Value}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment