Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkopedia committed Mar 28, 2024
1 parent 1f9cd4c commit 0cc6e3f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ksrpc-core/src/commonMain/kotlin/Logger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ interface Logger {
fun info(tag: String, message: String, throwable: Throwable? = null) = Unit
fun warn(tag: String, message: String, throwable: Throwable? = null) = Unit
fun error(tag: String, message: String, throwable: Throwable? = null) = Unit
}
}
2 changes: 1 addition & 1 deletion ksrpc-core/src/commonMain/kotlin/RpcMethod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class SubserviceTransformer<T : RpcService>(
val client = client<S>() ?: error("Cannot untransform service type from non-client channel")
unpackError(data, channel)
val serviceId = channel.env.serialization.decodeCallData(String.serializer(), data)
channel.env.logger.info("Transformer", "Deserializing CallData(${serviceId}) to Stub")
channel.env.logger.info("Transformer", "Deserializing CallData($serviceId) to Stub")
return serviceObj.createStub(client.wrapChannel(ChannelId(serviceId)))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex

class JniConnection(
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import kotlinx.cinterop.toCPointer
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex

class NativeConnection(
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import io.ktor.websocket.close
import io.ktor.websocket.serialization.receiveDeserializedBase
import io.ktor.websocket.serialization.sendSerializedBase
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.sync.Mutex
import kotlinx.serialization.json.Json

@OptIn(InternalAPI::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import io.ktor.utils.io.ByteReadChannel
import io.ktor.utils.io.ByteWriteChannel
import io.ktor.utils.io.readFully
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.sync.Mutex
import kotlinx.serialization.builtins.serializer

internal class ReadWritePacketChannel(
Expand Down

0 comments on commit 0cc6e3f

Please sign in to comment.