mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-24 14:57:07 +08:00
format
This commit is contained in:
parent
c07bf58fda
commit
c2cc2957a5
@ -98,7 +98,9 @@ private func runServer() throws {
|
|||||||
.serverChannelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
|
.serverChannelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
|
||||||
.serverChannelInitializer { channel in
|
.serverChannelInitializer { channel in
|
||||||
channel.eventLoop.makeCompletedFuture {
|
channel.eventLoop.makeCompletedFuture {
|
||||||
try channel.pipeline.syncOperations.addHandler(quiesce.makeServerChannelHandler(channel: channel))
|
try channel.pipeline.syncOperations.addHandler(
|
||||||
|
quiesce.makeServerChannelHandler(channel: channel)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.childChannelOption(ChannelOptions.socket(IPPROTO_TCP, TCP_NODELAY), value: 1)
|
.childChannelOption(ChannelOptions.socket(IPPROTO_TCP, TCP_NODELAY), value: 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user