Skip to content

Commit 3c42f30

Browse files
committed
Changes following review
1 parent 226d374 commit 3c42f30

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/riakc_pb_socket.erl

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ get(Pid, Bucket, Key, Options, Timeout) ->
345345
{ok|crc_wonky,
346346
{deleted, term(), binary()}|binary()}.
347347
fetch(Pid, QueueName) ->
348-
Req = #rpbfetchreq{queuename = QueueName},
349-
call_infinity(Pid, {req, Req, default_timeout(get_timeout)}).
350-
348+
fetch(Pid, QueueName, internal).
351349

352350
%% @doc Fetch with specific format may also return segment ID and hash
353351
-spec fetch(pid(), binary(), internal|internal_aaehash) ->
@@ -2453,17 +2451,14 @@ process_response(#request{msg = #rpbpushreq{queuename = Q}},
24532451
realt_length = RTL}, State) ->
24542452
{reply,
24552453
{ok,
2456-
list_to_binary(
2457-
lists:flatten(
2458-
io_lib:format("Queue ~s: ~w ~w ~w", [Q, FL, FSL, RTL])))},
2454+
iolist_to_binary(
2455+
io_lib:format("Queue ~s: ~w ~w ~w", [Q, FL, FSL, RTL]))},
24592456
State};
24602457
process_response(#request{msg = #rpbpushreq{queuename = Q}},
24612458
#rpbpushresp{queue_exists = false}, State) ->
24622459
{reply,
24632460
{ok,
2464-
list_to_binary(
2465-
lists:flatten(
2466-
io_lib:format("No queue ~s", [Q])))},
2461+
iolist_to_binary(io_lib:format("No queue ~s", [Q]))},
24672462
State};
24682463

24692464

0 commit comments

Comments
 (0)