File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ extension WebSocketClient {
368
368
let device = findDevice ( with: deviceName, protocol: resolvedAddress. protocol)
369
369
{
370
370
// bind to selected device, if any
371
- return bindTo ( device: device, on: channel)
371
+ logger. debug ( " deviceName \( deviceName) , device \( device) " )
372
+ return bindTo ( device, on: channel)
372
373
}
373
374
374
375
return channel. eventLoop. makeSucceededVoidFuture ( )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ typealias ChannelInitializer = @Sendable (Channel) -> EventLoopFuture<Void>
20
20
/// - Parameters:
21
21
/// - device: the device to bind to
22
22
/// - on: the channel that will be bound to the device
23
- internal func bindTo( device: NIONetworkDevice , on channel: Channel ) -> EventLoopFuture < Void > {
23
+ internal func bindTo( _ device: NIONetworkDevice , on channel: Channel ) -> EventLoopFuture < Void > {
24
24
#if canImport(Darwin)
25
25
switch device. address {
26
26
case . v4:
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ extension WebSocketServer {
277
277
let device = findDevice ( with: deviceName, protocol: resolvedAddress. protocol)
278
278
{
279
279
logger. debug ( " deviceName \( deviceName) , device \( device) " )
280
- return bindTo ( device: device , on: channel)
280
+ return bindTo ( device, on: channel)
281
281
}
282
282
283
283
return channel. eventLoop. makeSucceededVoidFuture ( )
@@ -310,7 +310,8 @@ extension WebSocketServer {
310
310
if let deviceName = configuration. deviceName,
311
311
let device = findDevice ( with: deviceName, protocol: resolvedAddress. protocol)
312
312
{
313
- return bindTo ( device: device, on: channel)
313
+ logger. debug ( " deviceName \( deviceName) , device \( device) " )
314
+ return bindTo ( device, on: channel)
314
315
}
315
316
316
317
return channel. eventLoop. makeSucceededVoidFuture ( )
You can’t perform that action at this time.
0 commit comments