File 0015-turtle_subscriber-remove-warning-in-handle_commands-.patch of Package turtle

From fa3161d6cfcf41e4ef70efc540f7466a3709b9d9 Mon Sep 17 00:00:00 2001
From: Led <ledest@gmail.com>
Date: Thu, 22 Nov 2018 18:45:17 +0200
Subject: [PATCH 2/2] turtle_subscriber: remove warning in handle_commands/3
 for no_ack

---
 src/turtle_subscriber.erl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/turtle_subscriber.erl b/src/turtle_subscriber.erl
index e3e2776..5d2f759 100644
--- a/src/turtle_subscriber.erl
+++ b/src/turtle_subscriber.erl
@@ -221,8 +221,7 @@ handle_commands(_S, [{stop, Reason, _Tag} | _Next], #state { no_ack = true } = S
     {stop, Reason, State};
 handle_commands(_S, [{{stop, Reason}, _Tag} | _Next], #state { no_ack = true } = State) ->
     {stop, Reason, State};
-handle_commands(S, [C | Next], #state { no_ack = true } = State) ->
-    lager:warning("Unexpected cmd ~p in no_ack mode is ignored", [C]),
+handle_commands(S, [_C | Next], #state { no_ack = true } = State) ->
     handle_commands(S, Next, State);
 handle_commands(S, [C | Next],
 	#state { channel = Channel, conn_name = CN, name = N } = State) ->
-- 
2.16.4

openSUSE Build Service is sponsored by