Skip to content

Commit df15ef8

Browse files
committed
Improve name
1 parent 5d58b1f commit df15ef8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/GRPCInProcessTransport/InProcessTransport+Server.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ extension InProcessTransport {
3636
private let newStreamsContinuation: AsyncStream<RPCStream<Inbound, Outbound>>.Continuation
3737

3838
private struct State: Sendable {
39-
private var id: UInt64
39+
private var _nextID: UInt64
4040
private var handles: [UInt64: ServerContext.RPCCancellationHandle]
4141
private var isShutdown: Bool
4242

4343
private mutating func nextID() -> UInt64 {
44-
let id = self.id
45-
self.id &+= 1
44+
let id = self._nextID
45+
self._nextID &+= 1
4646
return id
4747
}
4848

4949
init() {
50-
self.id = 0
50+
self._nextID = 0
5151
self.handles = [:]
5252
self.isShutdown = false
5353
}

0 commit comments

Comments
 (0)