Skip to content

Commit 735a229

Browse files
committed
Rename serverBootstrapNWParametersConfigurator to nwParametersConfigurator
1 parent ac7d011 commit 735a229

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/GRPC/Server.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public final class Server: @unchecked Sendable {
129129
}
130130

131131
if #available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *),
132-
let nwParametersConfigurator = configuration.serverBootstrapNWParametersConfigurator,
132+
let nwParametersConfigurator = configuration.nwParametersConfigurator,
133133
let transportServicesBootstrap = bootstrap as? NIOTSListenerBootstrap {
134134
nwParametersConfigurator(transportServicesBootstrap)
135135
}
@@ -392,20 +392,20 @@ extension Server {
392392

393393
#if canImport(Network)
394394
@available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
395-
public var serverBootstrapNWParametersConfigurator: (
395+
public var nwParametersConfigurator: (
396396
@Sendable (NIOTSListenerBootstrap) -> Void
397397
)? {
398398
get {
399-
return self._serverBootstrapNWParametersConfigurator as! (
399+
return self._nwParametersConfigurator as! (
400400
@Sendable (NIOTSListenerBootstrap) -> Void
401401
)?
402402
}
403403
set {
404-
self._serverBootstrapNWParametersConfigurator = newValue
404+
self._nwParametersConfigurator = newValue
405405
}
406406
}
407407

408-
private var _serverBootstrapNWParametersConfigurator: (any Sendable)?
408+
private var _nwParametersConfigurator: (any Sendable)?
409409
#endif
410410

411411
/// CORS configuration for gRPC-Web support.

Tests/GRPCTests/ServerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ServerTests: GRPCTestCase {
3333
eventLoopGroup: serverEventLoopGroup,
3434
serviceProviders: []
3535
)
36-
serverConfiguration.serverBootstrapNWParametersConfigurator = { _ in
36+
serverConfiguration.nwParametersConfigurator = { _ in
3737
counter.withLockedValue { $0 += 1 }
3838
}
3939

0 commit comments

Comments
 (0)