Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Nov 27, 2023
1 parent e5dfbfd commit e106129
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions master/src/main/scala/Master.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ object Master extends Logging {

logger.info(s"[Master] Clients: $clients")

logger.info(s"[Master] Sample Requested")
logger.info("[Master] Sample Requested")

val sampledKeys = clients
.sample(64)
.flatMap(_.sampledKeys)
.map(Key.fromByteString)

logger.info(s"[Master] Sampled")
logger.info("[Master] Sampled")

val sortedSampledKeys = sampledKeys.sorted

Expand Down
8 changes: 5 additions & 3 deletions rpc/src/main/scala/WorkerClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ import io.grpc.ManagedChannel
import io.grpc.ManagedChannelBuilder
import kr.ac.postech.paranode.core.Block
import kr.ac.postech.paranode.core.WorkerMetadata
import kr.ac.postech.paranode.utils.GenericBuildFrom

import java.util.concurrent.TimeUnit
import java.util.logging.Logger
import scala.concurrent.{Await, ExecutionContext, Future}
import scala.concurrent.Await
import scala.concurrent.ExecutionContext
import scala.concurrent.Future

import worker._
import worker.WorkerGrpc.WorkerStub
import Implicit._

import kr.ac.postech.paranode.utils.GenericBuildFrom

object WorkerClient {

implicit class WorkerClients(val clients: List[WorkerClient]) {
Expand Down
3 changes: 2 additions & 1 deletion utils/src/main/scala/GenericBuildFrom.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kr.ac.postech.paranode.utils

import scala.collection.{BuildFrom, mutable}
import scala.collection.BuildFrom
import scala.collection.mutable

object GenericBuildFrom {
def apply[A, B]: BuildFrom[List[A], B, List[B]] =
Expand Down

0 comments on commit e106129

Please sign in to comment.