Skip to content

Commit bbf3501

Browse files
committed
Rename some details
1 parent 786e8c2 commit bbf3501

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/RouteConfigurator.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ struct RouteConfigurator {
5151
}
5252
}
5353

54-
newWebsocket.onBinary { ws, lspPacketBytes in
55-
let lspPacket = Data(buffer: lspPacketBytes)
56-
activeServerExecutable?.receive(input: lspPacket)
54+
newWebsocket.onBinary { ws, bufferedBytesFromWebSocket in
55+
let dataFromWebSocket = Data(buffer: bufferedBytesFromWebSocket)
56+
activeServerExecutable?.receive(input: dataFromWebSocket)
5757
}
5858

5959
activeWebSocket?.close(promise: nil)
@@ -73,8 +73,8 @@ struct RouteConfigurator {
7373
activeServerExecutable?.stop()
7474
activeServerExecutable = newServerExecutable
7575

76-
newServerExecutable.didSend = { lspPacket in
77-
activeWebSocket?.send([UInt8](lspPacket.data))
76+
newServerExecutable.didSend = { packetFromServer in
77+
activeWebSocket?.send([UInt8](packetFromServer.data))
7878
}
7979

8080
newServerExecutable.didSendError = { stdErrData in

0 commit comments

Comments
 (0)