Skip to content

Commit c366a16

Browse files
committed
Explicitly depend on NIO modules
1 parent d0f15ad commit c366a16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+81
-63
lines changed

Package.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ let package = Package(
3434
name: "RediStack",
3535
dependencies: [
3636
.product(name: "Atomics", package: "swift-atomics"),
37-
.product(name: "NIO", package: "swift-nio"),
37+
.product(name: "NIOCore", package: "swift-nio"),
38+
.product(name: "NIOPosix", package: "swift-nio"),
3839
.product(name: "Logging", package: "swift-log"),
3940
.product(name: "Metrics", package: "swift-metrics"),
4041
.product(name: "ServiceDiscovery", package: "swift-service-discovery")
@@ -44,7 +45,9 @@ let package = Package(
4445
name: "RediStackTests",
4546
dependencies: [
4647
"RediStack", "RediStackTestUtils",
47-
.product(name: "NIO", package: "swift-nio"),
48+
.product(name: "NIOCore", package: "swift-nio"),
49+
.product(name: "NIOPosix", package: "swift-nio"),
50+
.product(name: "NIOEmbedded", package: "swift-nio"),
4851
.product(name: "NIOTestUtils", package: "swift-nio")
4952
]
5053
),
@@ -54,14 +57,16 @@ let package = Package(
5457
name: "RedisTypesTests",
5558
dependencies: [
5659
"RediStack", "RedisTypes", "RediStackTestUtils",
57-
.product(name: "NIO", package: "swift-nio")
60+
.product(name: "NIOCore", package: "swift-nio")
5861
]
5962
),
6063

6164
.target(
6265
name: "RediStackTestUtils",
6366
dependencies: [
64-
.product(name: "NIO", package: "swift-nio"),
67+
.product(name: "NIOCore", package: "swift-nio"),
68+
.product(name: "NIOPosix", package: "swift-nio"),
69+
.product(name: "NIOEmbedded", package: "swift-nio"),
6570
"RediStack"
6671
]
6772
),

Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// Handles incoming byte messages from Redis
1818
/// and decodes them according to the Redis Serialization Protocol (RESP).

Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the RediStack open source project
44
//
5-
// Copyright (c) 2019-2020 RediStack project authors
5+
// Copyright (c) 2019-2022 RediStack project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// An object that operates in a First In, First Out (FIFO) request-response cycle.
1818
///

Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the RediStack open source project
44
//
5-
// Copyright (c) 2019 RediStack project authors
5+
// Copyright (c) 2019-2022 RediStack project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
#if DEBUG
1818
// used only for debugging purposes where we build a formatted string for the encoded bytes

Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// The possible events that are received from Redis Pub/Sub channels.
1818
public enum RedisPubSubEvent {

Sources/RediStack/Commands/ConnectionCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import struct Logging.Logger
16-
import NIO
16+
import NIOCore
1717

1818
// MARK: Connection
1919

Sources/RediStack/Commands/HashCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import struct Logging.Logger
16-
import NIO
16+
import NIOCore
1717

1818
// MARK: Hashes
1919

Sources/RediStack/Commands/KeyCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import struct Logging.Logger
16-
import NIO
16+
import NIOCore
1717

1818
// MARK: Key
1919

Sources/RediStack/Commands/ListCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
// MARK: Lists
1818

Sources/RediStack/Commands/PubSubCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import struct Logging.Logger
16-
import NIO
16+
import NIOCore
1717

1818
// MARK: PubSub
1919

0 commit comments

Comments
 (0)