fix new NIO and new Swift compiler warnings (#179)

This commit is contained in:
Johannes Weiss authored and GitHub committed 2019-12-10 12:45:48 +00:00
1 parent 859f6b46aa
commit c1bfb7ce3f
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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