@@ -345,9 +345,7 @@ get(Pid, Bucket, Key, Options, Timeout) ->
345345 {ok |crc_wonky ,
346346 {deleted , term (), binary ()}|binary ()}.
347347fetch (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 };
24602457process_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