@@ -15,13 +15,13 @@ import kotlinx.rpc.annotations.Rpc
15
15
import kotlinx.rpc.descriptor.RpcCallable
16
16
import kotlinx.rpc.internal.serviceScopeOrNull
17
17
import kotlinx.rpc.internal.utils.InternalRpcApi
18
- import kotlinx.rpc.internal.utils.SupervisedCompletableDeferred
18
+ import kotlinx.rpc.internal.utils.RpcInternalSupervisedCompletableDeferred
19
19
import kotlinx.rpc.internal.utils.getOrNull
20
- import kotlinx.rpc.internal.utils.map.ConcurrentHashMap
20
+ import kotlinx.rpc.internal.utils.map.RpcInternalConcurrentHashMap
21
21
import kotlinx.rpc.krpc.*
22
22
import kotlinx.rpc.krpc.client.internal.KrpcClientConnector
23
23
import kotlinx.rpc.krpc.internal.*
24
- import kotlinx.rpc.krpc.internal.logging.CommonLogger
24
+ import kotlinx.rpc.krpc.internal.logging.RpcInternalCommonLogger
25
25
import kotlinx.serialization.BinaryFormat
26
26
import kotlinx.serialization.SerialFormat
27
27
import kotlinx.serialization.StringFormat
@@ -68,7 +68,7 @@ public abstract class KrpcClient(
68
68
69
69
private val callCounter = atomic(0L )
70
70
71
- override val logger: CommonLogger = CommonLogger .logger(objectId ())
71
+ final override val logger: RpcInternalCommonLogger = RpcInternalCommonLogger .logger(rpcInternalObjectId ())
72
72
73
73
private val serverSupportedPlugins: CompletableDeferred <Set <KrpcPlugin >> = CompletableDeferred ()
74
74
@@ -79,7 +79,7 @@ public abstract class KrpcClient(
79
79
private var clientCancelled = false
80
80
81
81
// callId to serviceTypeString
82
- private val cancellingRequests = ConcurrentHashMap <String , String >()
82
+ private val cancellingRequests = RpcInternalConcurrentHashMap <String , String >()
83
83
84
84
init {
85
85
coroutineContext.job.invokeOnCompletion(onCancelling = true ) {
@@ -155,7 +155,7 @@ public abstract class KrpcClient(
155
155
val callable = call.descriptor.getCallable(call.callableName)
156
156
? : error(" Unexpected callable '${call.callableName} ' for ${call.descriptor.fqName} service" )
157
157
158
- val deferred = SupervisedCompletableDeferred <T >(serviceScope.coroutineContext.job)
158
+ val deferred = RpcInternalSupervisedCompletableDeferred <T >(serviceScope.coroutineContext.job)
159
159
160
160
/* *
161
161
* Launched on the service scope (receiver)
@@ -181,7 +181,7 @@ public abstract class KrpcClient(
181
181
val callable = call.descriptor.getCallable(call.callableName)
182
182
? : error(" Unexpected callable '${call.callableName} ' for ${call.descriptor.fqName} service" )
183
183
184
- val callCompletableResult = SupervisedCompletableDeferred <T >()
184
+ val callCompletableResult = RpcInternalSupervisedCompletableDeferred <T >()
185
185
val rpcCall = call(call, callable, callCompletableResult)
186
186
val result = callCompletableResult.await()
187
187
0 commit comments