Skip to content

Instantly share code, notes, and snippets.

@kevsmith
Created February 10, 2009 03:33
Show Gist options
  • Save kevsmith/61214 to your computer and use it in GitHub Desktop.
Save kevsmith/61214 to your computer and use it in GitHub Desktop.
handle_call({insert, Value}, _From, State) ->
NextNodePid = node_manager:next_node(?METHOD),
NextDbPid = db_node:next_db(NextNodePid, ?METHOD),
db:insert(Value).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment