Skip to content

Commit

Permalink
fix: remove resrenju dummy client
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyun397 committed Feb 26, 2024
1 parent e85f67a commit 65f4937
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions core/src/main/kotlin/core/inference/ResRenjuClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import engine.util.SolutionExtension
import inference.InferenceGrpcKt
import inference.InferenceProto
import io.grpc.ManagedChannel
import io.grpc.ManagedChannelBuilder
import renju.Board
import renju.notation.Color
import renju.protocol.AiPreset
Expand Down Expand Up @@ -104,19 +105,12 @@ class ResRenjuClient(private val channel: ManagedChannel) : Closeable {

companion object {

@Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION")
private val dummyClient: ResRenjuClient by lazy {
throw NotImplementedError()
}

@Suppress("UNUSED_PARAMETER")
fun connectionFrom(serverAddress: String, serverPort: Int): ResRenjuClient =
dummyClient
// ResRenjuClient(
// ManagedChannelBuilder
// .forAddress(serverAddress, serverPort)
// .build()
// )
ResRenjuClient(
ManagedChannelBuilder
.forAddress(serverAddress, serverPort)
.build()
)

}

Expand Down

0 comments on commit 65f4937

Please sign in to comment.