Skip to content

Commit

Permalink
added the println process address for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
shaileshp0110 committed Feb 18, 2019
1 parent 44de020 commit 949961d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/iohk/scalanet/peergroup/MessageChannel.scala
Expand Up @@ -40,7 +40,7 @@ class TerminalGroupMessageChannel[A, MessageType: PartialCodec, F[_]](
case Left(Failure) =>
println(s"OH DEAR, DECODING FAILED")
case Right(decodeResult) =>
println(s"Got a successful decode $decodeResult. Notifying subscribers")
println(s"${terminalPeerGroup.processAddress} Got a successful decode $decodeResult. Notifying subscribers")
subscribers.notify(decodeResult.decoded)
}
}
Expand All @@ -49,7 +49,7 @@ class TerminalGroupMessageChannel[A, MessageType: PartialCodec, F[_]](
Map(ev.typeCode -> handle)

terminalPeerGroup.messageStream.foreach { b =>
println(s"GOT A MESSAGE. DECODING IT." + b.toString)
println(s"${terminalPeerGroup.processAddress} GOT A MESSAGE. DECODING IT." + b.toString)
Codec.decodeFrame(decoderWrappers, 0, b)
}
override val inboundMessages = new MonixMessageStream(subscribers.monixMessageStream)
Expand Down

0 comments on commit 949961d

Please sign in to comment.