File tree 1 file changed +1
-5
lines changed
Sources/WebSocketKit/Concurrency/Compression
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public enum Decompression {
4
4
5
5
public struct Configuration {
6
6
/// `deflate` is the main compression algorithm for web-sockets (RFC 7692),
7
- /// and for now we only support `deflate`.
7
+ /// so for now we only support `deflate`.
8
8
let algorithm : Compression . Algorithm = . deflate
9
9
10
10
private init ( ) { }
@@ -15,17 +15,13 @@ public enum Decompression {
15
15
public struct DecompressionError : Error , Equatable , CustomStringConvertible {
16
16
17
17
private enum Base : Error , Equatable {
18
- case limit
19
18
case inflationError( Int )
20
19
case initializationError( Int )
21
20
case invalidTrailingData
22
21
}
23
22
24
23
private var base : Base
25
24
26
- /// The set ``DecompressionLimit`` has been exceeded
27
- public static let limit = Self ( base: . limit)
28
-
29
25
/// An error occurred when inflating. Error code is included to aid diagnosis.
30
26
public static var inflationError : ( Int ) -> Self = {
31
27
Self ( base: . inflationError( $0) )
You can’t perform that action at this time.
0 commit comments