Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
wartremover fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Nov 3, 2020
1 parent d8e5d73 commit 3ca4293
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -131,14 +131,14 @@ class PeerConnectionHandler(val settings: NetworkSettings,

case cc: ConnectionClosed =>
// connection closed from either side, actor is shutting down itself
val reason = if (cc.isErrorClosed) {
val reason: String = if (cc.isErrorClosed) {
"error: " + cc.getErrorCause
} else if (cc.isPeerClosed) {
"closed by the peer"
} else if (cc.isAborted) {
"aborted locally"
} else ""
log.info(s"Connection closed to $connectionId, reason: $reason")
log.info(s"Connection closed to $connectionId, reason: " + reason)
context stop self
}

Expand Down

0 comments on commit 3ca4293

Please sign in to comment.