mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-15 01:18:58 +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()
|
||||
///
|
||||
public final class ServerQuiescingHelper {
|
||||
/// The `ServerQuiescingHelper` was never used to create a channel handler.
|
||||
public struct UnusedQuiescingHelperError: Error {}
|
||||
private let channelCollectorPromise: EventLoopPromise<ChannelCollector>
|
||||
|
||||
@ -227,7 +228,6 @@ public final class ServerQuiescingHelper {
|
||||
self.channelCollectorPromise = group.next().makePromise()
|
||||
}
|
||||
|
||||
/// Deinitilaize the `channelCollectorPromise` with failure when promise never succeeded
|
||||
deinit {
|
||||
self.channelCollectorPromise.fail(UnusedQuiescingHelperError())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user