Skip to content

Commit 2ea704c

Browse files
Merge pull request #13841 from rabbitmq/mergify/bp/v4.1.x/pr-13840
Fix formatter crash in rabbit_reader (backport #13840)
2 parents a043f00 + ce776fc commit 2ea704c

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)