mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-17 02:22:18 +08:00
Minor fixes
This commit is contained in:
parent
1fb9fef8ea
commit
fba57a87ad
@ -216,6 +216,7 @@ private final class CollectAcceptedChannelsHandler: ChannelInboundHandler {
|
|||||||
/// try fullyShutdownPromise.futureResult.wait()
|
/// try fullyShutdownPromise.futureResult.wait()
|
||||||
///
|
///
|
||||||
public final class ServerQuiescingHelper {
|
public final class ServerQuiescingHelper {
|
||||||
|
/// The `ServerQuiescingHelper` was never used to create a channel handler.
|
||||||
public struct UnusedQuiescingHelperError: Error {}
|
public struct UnusedQuiescingHelperError: Error {}
|
||||||
private let channelCollectorPromise: EventLoopPromise<ChannelCollector>
|
private let channelCollectorPromise: EventLoopPromise<ChannelCollector>
|
||||||
|
|
||||||
@ -227,7 +228,6 @@ public final class ServerQuiescingHelper {
|
|||||||
self.channelCollectorPromise = group.next().makePromise()
|
self.channelCollectorPromise = group.next().makePromise()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Deinitilaize the `channelCollectorPromise` with failure when promise never succeeded
|
|
||||||
deinit {
|
deinit {
|
||||||
self.channelCollectorPromise.fail(UnusedQuiescingHelperError())
|
self.channelCollectorPromise.fail(UnusedQuiescingHelperError())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user