mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-27 05:04:23 +00:00
fix new NIO and new Swift compiler warnings (#179)
This commit is contained in:
1 parent
859f6b46aa
commit
c1bfb7ce3f
4 files changed
+6
-6
No files matched your search
@@ -136,7 +136,7 @@ final class HTTP2StreamChannel: Channel, ChannelCore {
|
||||
self.streamID = streamID
|
||||
self.multiplexer = multiplexer
|
||||
self.windowManager = InboundWindowManager(targetSize: Int32(targetWindowSize))
|
||||
self._isWritable = Atomic(value: true)
|
||||
self._isWritable = .makeAtomic(value: true)
|
||||
self.state = .idle
|
||||
self.writabilityManager = StreamChannelFlowController(highWatermark: outboundBytesHighWatermark,
|
||||
lowWatermark: outboundBytesLowWatermark,
|
||||
@@ -302,7 +302,7 @@ final class HTTP2StreamChannel: Channel, ChannelCore {
|
||||
return self._isWritable.load()
|
||||
}
|
||||
|
||||
private let _isWritable: Atomic<Bool>
|
||||
private let _isWritable: NIOAtomic<Bool>
|
||||
|
||||
public var isActive: Bool {
|
||||
return self.state == .active || self.state == .closing || self.state == .localActive
|
||||
|
||||
Reference in new issue
Block a user