Skip to content

Commit

Permalink
scalastyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaap van der Plas committed Feb 22, 2021
1 parent 792b945 commit 1a76d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/io/iohk/ethereum/network/PortForwarder.scala
Expand Up @@ -30,7 +30,7 @@ private class ClientOnlyUpnpServiceConfiguration extends DefaultUpnpServiceConfi
override def createStreamClient(): StreamClient[_ <: StreamClientConfiguration] =
JDKTransportConfiguration.INSTANCE.createStreamClient(getSyncProtocolExecutorService())

override def createStreamServer(networkAddressFactory: NetworkAddressFactory) =
override def createStreamServer(networkAddressFactory: NetworkAddressFactory): NoStreamServer.type =
NoStreamServer // prevent a StreamServer from running needlessly
}

Expand All @@ -45,7 +45,7 @@ private object NoStreamServer extends StreamServer[StreamServerConfiguration] {
}

object PortForwarder {
final val description = "Mantis"
private final val description = "Mantis"

def openPorts(tcpPorts: Seq[Int], udpPorts: Seq[Int]): Resource[Task, Unit] =
Resource
Expand Down

0 comments on commit 1a76d4b

Please sign in to comment.