Permalink
Browse files

use rt:pbc to read the new pb app.config format

  • Loading branch information...
Dave Parfitt
Dave Parfitt committed Mar 20, 2013
1 parent 64170a2 commit 823c65a87115734031aba30901f58ea7f96c7a0a
Showing with 1 addition and 5 deletions.
  1. +1 −5 tests/replication2.erl
View
@@ -438,11 +438,7 @@ replication([AFirst|_] = ANodes, [BFirst|_] = BNodes, Connected) ->
fin.
pb_write_during_shutdown(Target, BSecond, TestBucket) ->
- {ok, Port} = rpc:call(Target, application, get_env, [riak_api, pb_port]),
-
- lager:info("Connecting to pb socket ~p:~p on ~p", ["127.0.0.1", Port,

This comment has been minimized.

Show comment Hide comment
@buddhisthead

buddhisthead Mar 20, 2013

Contributor

I like using the rt:pbc call, but I don't like losing the lager:info stmt for which port we are connecting to. Can I have that back?

@buddhisthead

buddhisthead Mar 20, 2013

Contributor

I like using the rt:pbc call, but I don't like losing the lager:info stmt for which port we are connecting to. Can I have that back?

- Target]),
- {ok, PBSock} = riakc_pb_socket:start("127.0.0.1", Port),
+ PBSock = rt:pbc(Target),
%% do the stop in the background while we're writing keys
spawn(fun() ->

0 comments on commit 823c65a

Please sign in to comment.