Skip to content

Commit

Permalink
wip review
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoughjr committed Aug 30, 2023
1 parent 30f622e commit dfe82ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WebSocketKit/PMCE.swift
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public final class PMCE: Sendable {
data: compressed)

frame.rsv1 = true
let slice = compressed.getSlice(at:compressed.readerIndex,
let slice = compressed.getSlice(at: compressed.readerIndex,
length: compressed.readableBytes - 4)
frame.data = slice ?? compressed

Expand Down
2 changes: 1 addition & 1 deletion Sources/WebSocketKit/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public final class WebSocket: Sendable {
self.channel.writeAndFlush(compressedFrame, promise: promise)
}
catch {
logger.error("\(error)")
promise?.fail(error)
}
}
else {
Expand Down

0 comments on commit dfe82ed

Please sign in to comment.