From 7dc805cbb1f985613f0f5efaac7f90a8e573f1de Mon Sep 17 00:00:00 2001 From: Anmol Vijaywargiya Date: Wed, 18 May 2022 17:03:59 +0530 Subject: [PATCH] Fixed linting issue --- src/ziggurat/messaging/producer.clj | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ziggurat/messaging/producer.clj b/src/ziggurat/messaging/producer.clj index fda943c4..bc01a654 100644 --- a/src/ziggurat/messaging/producer.clj +++ b/src/ziggurat/messaging/producer.clj @@ -97,10 +97,6 @@ (metrics/increment-count ["rabbitmq" "publish"] "exception" {:topic-entity (name (:topic-entity message-payload)) :retry-counter retry-counter}) :retry-with-counter))) -<<<<<<< HEAD - -======= ->>>>>>> 6a8eb91... Add retry states for publish (defn- publish-retry-config [] (-> (ziggurat-config) :rabbit-mq-connection :publish-retry)) @@ -125,9 +121,8 @@ (when (is-pool-alive? cpool/channel-pool) (let [result (publish-internal exchange message-payload expiration retry-counter)] (when (pos? retry-counter) - (do - (log/info "Retrying publishing the message to " exchange) - (log/info "Retry attempt " retry-counter))) + (log/info "Retrying publishing the message to " exchange) + (log/info "Retry attempt " retry-counter)) (log/info "Publish result " result) (cond (= result :success) nil