Created
October 3, 2013 19:52
-
-
Save elight/6816063 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gimme_a_client_from(Context) -> | |
case Context#ctx.client of | |
undefined -> | |
{ok, Client} = riakc_pb_socket:start_link(?RIAK_NAME, ?RIAK_PB_PORT), | |
Client; | |
C -> C | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment