Skip to content

Commit 364004c

Browse files
committed
move forward
1 parent ffaf3ce commit 364004c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Sources/PostgresNIO/New/VariadicGenerics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension PostgresRow {
4747
}
4848
// --- snap TODO: Remove once bug is fixed, that disallows tuples of one
4949

50-
// @inlinable // <--- commenting this in, crashes the compiler
50+
@inlinable
5151
public func decode<each Column: PostgresDecodable>(
5252
_ columnType: (repeat each Column).Type,
5353
context: PostgresDecodingContext<some PostgresJSONDecoder>,
@@ -102,7 +102,7 @@ extension PostgresRow {
102102
}
103103
}
104104

105-
// @inlinable // <--- commenting this in, crashes the compiler
105+
@inlinable
106106
public func decode<each Column: PostgresDecodable>(
107107
_ columnType: (repeat each Column).Type,
108108
file: String = #fileID,

Tests/IntegrationTests/AsyncTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import NIOPosix
88
import NIOCore
99

1010
final class AsyncPostgresConnectionTests: XCTestCase {
11-
1211
func test1kRoundTrips() async throws {
1312
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
1413
defer { XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully()) }

Tests/IntegrationTests/PostgresNIOTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,10 +1246,10 @@ final class PostgresNIOTests: XCTestCase {
12461246
return EventLoopFuture.whenAllSucceed([a, b, c], on: self.eventLoop)
12471247
}).wait())
12481248
XCTAssertEqual(queries?.count, 3)
1249-
var resutIterator = queries?.makeIterator()
1250-
XCTAssertEqual(try resutIterator?.next()?.first?.decode(String.self, context: .default), "a")
1251-
XCTAssertEqual(try resutIterator?.next()?.first?.decode(String.self, context: .default), "b")
1252-
XCTAssertEqual(try resutIterator?.next()?.first?.decode(String.self, context: .default), "c")
1249+
var resultIterator = queries?.makeIterator()
1250+
XCTAssertEqual(try resultIterator?.next()?.first?.decode(String.self, context: .default), "a")
1251+
XCTAssertEqual(try resultIterator?.next()?.first?.decode(String.self, context: .default), "b")
1252+
XCTAssertEqual(try resultIterator?.next()?.first?.decode(String.self, context: .default), "c")
12531253
}
12541254

12551255
// https://github.com/vapor/postgres-nio/issues/122

0 commit comments

Comments
 (0)