We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d58b1f commit df15ef8Copy full SHA for df15ef8
Sources/GRPCInProcessTransport/InProcessTransport+Server.swift
@@ -36,18 +36,18 @@ extension InProcessTransport {
36
private let newStreamsContinuation: AsyncStream<RPCStream<Inbound, Outbound>>.Continuation
37
38
private struct State: Sendable {
39
- private var id: UInt64
+ private var _nextID: UInt64
40
private var handles: [UInt64: ServerContext.RPCCancellationHandle]
41
private var isShutdown: Bool
42
43
private mutating func nextID() -> UInt64 {
44
- let id = self.id
45
- self.id &+= 1
+ let id = self._nextID
+ self._nextID &+= 1
46
return id
47
}
48
49
init() {
50
- self.id = 0
+ self._nextID = 0
51
self.handles = [:]
52
self.isShutdown = false
53
0 commit comments