Skip to content

Commit ce776fc

Browse files
mkuratczykmergify[bot]
authored andcommitted
Fix formatter crash in rabbit_reader
(cherry picked from commit 435274b)
1 parent a043f00 commit ce776fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_reader.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,12 @@ log_connection_exception(Severity, Name, Duration, {connection_closed_abruptly,
421421
log_connection_exception_with_severity(Severity, Fmt,
422422
[self(), Name, Duration]);
423423
%% failed connection.tune negotiations
424-
log_connection_exception(Severity, Name, Duration, {handshake_error, tuning,
424+
log_connection_exception(Severity, Name, _Duration, {handshake_error, tuning,
425425
{exit, #amqp_error{explanation = Explanation},
426426
_Method, _Stacktrace}}) ->
427427
Fmt = "closing AMQP connection ~tp (~ts):~n"
428428
"failed to negotiate connection parameters: ~ts",
429-
log_connection_exception_with_severity(Severity, Fmt, [self(), Name, Duration, Explanation]);
429+
log_connection_exception_with_severity(Severity, Fmt, [self(), Name, Explanation]);
430430
log_connection_exception(Severity, Name, Duration, {sasl_required, ProtocolId}) ->
431431
Fmt = "closing AMQP 1.0 connection (~ts, duration: '~ts'): RabbitMQ requires SASL "
432432
"security layer (expected protocol ID 3, but client sent protocol ID ~b)",

0 commit comments

Comments
 (0)