Skip to content

Commit 20d055d

Browse files
committed
[FIX] fix ethservice formatting
1 parent ff917fe commit 20d055d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/EthService.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import io.iohk.ethereum.jsonrpc.{FilterManager => FM}
3434
import monix.eval.Task
3535
import org.bouncycastle.util.encoders.Hex
3636

37-
import scala.collection.concurrent.{ Map => ConcurrentMap, TrieMap }
37+
import scala.collection.concurrent.{Map => ConcurrentMap, TrieMap}
3838
import scala.concurrent.duration.FiniteDuration
3939
import scala.language.existentials
4040
import scala.reflect.ClassTag
@@ -532,9 +532,8 @@ class EthService(
532532

533533
// NOTE This is called from places that guarantee we are running Ethash consensus.
534534
private def removeObsoleteHashrates(now: Date): Unit = {
535-
hashRate.retain {
536-
case (_, (_, reported)) =>
537-
Duration.between(reported.toInstant, now.toInstant).toMillis < jsonRpcConfig.minerActiveTimeout.toMillis
535+
hashRate.retain { case (_, (_, reported)) =>
536+
Duration.between(reported.toInstant, now.toInstant).toMillis < jsonRpcConfig.minerActiveTimeout.toMillis
538537
}
539538
}
540539

0 commit comments

Comments
 (0)