mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-26 04:57:50 +00:00
Apply swift-format changes and CI (#472)
Motivation: Standardised formatting makes the project cleaner to look at and work on. Modifications: Setup swift-format with the same settings as Swift-NIO Result: Common formatting throughout
This commit is contained in:
1 parent
93586110f2
commit
1118370ec4
125 files changed
+21869
-11457
No files matched your search
@@ -15,7 +15,6 @@
|
||||
import NIOCore
|
||||
import NIOHPACK
|
||||
|
||||
|
||||
final class HPACKHeaderDecodingBenchmark {
|
||||
private var headers: ByteBuffer
|
||||
private let loopCount: Int
|
||||
@@ -28,11 +27,10 @@ final class HPACKHeaderDecodingBenchmark {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extension HPACKHeaderDecodingBenchmark: Benchmark {
|
||||
func setUp() throws { }
|
||||
func setUp() throws {}
|
||||
|
||||
func tearDown() { }
|
||||
func tearDown() {}
|
||||
|
||||
func run() throws -> Int {
|
||||
for _ in 0..<self.loopCount {
|
||||
@@ -44,7 +42,6 @@ extension HPACKHeaderDecodingBenchmark: Benchmark {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extension HPACKHeaders {
|
||||
fileprivate var encoded: ByteBuffer {
|
||||
var encoder = HPACKEncoder(allocator: .init())
|
||||
|
||||
Reference in new issue
Block a user