Skip to content

Instantly share code, notes, and snippets.

@elight
Created October 3, 2013 19:56
Show Gist options
  • Save elight/6816108 to your computer and use it in GitHub Desktop.
Save elight/6816108 to your computer and use it in GitHub Desktop.
gimme_a_client_in_mah(Context) when Context#ctx.client == undefined ->
{ok, Client} = riakc_pb_socket:start_link(?RIAK_NAME, ?RIAK_PB_PORT),
Context#ctx{client = Client}.
gimme_a_client_in_mah(Context) ->
Context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment