Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created October 3, 2013 19:56
Show Gist options
  • Save drewkerrigan/6816120 to your computer and use it in GitHub Desktop.
Save drewkerrigan/6816120 to your computer and use it in GitHub Desktop.
gimme_a_client_from(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_from(Context) -> Context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment