Skip to content

Commit ee51b10

Browse files
committed
code reivew remarks
1 parent b0761e8 commit ee51b10

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/scala/io/iohk/ethereum/network/rlpx/RLPxConnectionHandler.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ class RLPxConnectionHandler(
137137
case Success(message) =>
138138
context.parent ! MessageReceived(message)
139139

140-
case Failure(ex) =>
140+
case Failure(ex) => if (log.isDebugEnabled) {
141+
log.error(ex, s"Cannot decode message from $peerId")
142+
} else {
141143
log.error(s"Cannot decode message from $peerId because ${ex.getMessage}")
144+
}
142145
}
143146

144147
/**

src/universal/conf/network.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ grothendieck {
2929

3030
peer {
3131
# Retry delay for failed attempt at connecting to a peer
32-
# connect-retry-delay = 20 seconds
32+
# connect-retry-delay = 1 minute
3333

3434
# Maximum number of reconnect attempts after the connection has been initiated.
3535
# After that, the connection will be dropped until its initiated again (eg. by peer discovery)
36-
# connect-max-retries = 30
36+
# connect-max-retries = 2
3737

3838
# Maximum number of peers this node can connect to
3939
# max-peers = 40

0 commit comments

Comments
 (0)