Skip to content

Commit 30a0160

Browse files
committed
Fixes after rebase
Signed-off-by: Adam Fowler <[email protected]>
1 parent 817bb41 commit 30a0160

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/Valkey/Subscriptions/ValkeyClient+subscribe.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extension ValkeyClient {
5454
process: (ValkeySubscription) async throws -> sending Value
5555
) async throws -> Value {
5656
try await self.subscribe(
57-
command: SUBSCRIBE(channel: channels),
57+
command: SUBSCRIBE(channels: channels),
5858
filters: channels.map { .channel($0) },
5959
process: process
6060
)
@@ -98,7 +98,7 @@ extension ValkeyClient {
9898
process: (ValkeySubscription) async throws -> sending Value
9999
) async throws -> Value {
100100
try await self.subscribe(
101-
command: PSUBSCRIBE(pattern: patterns),
101+
command: PSUBSCRIBE(patterns: patterns),
102102
filters: patterns.map { .pattern($0) },
103103
process: process
104104
)
@@ -118,10 +118,10 @@ extension ValkeyClient {
118118
/// - Returns: Return value of closure
119119
@inlinable
120120
public func ssubscribe<Value>(
121-
to shardchannel: String...,
121+
to shardchannels: String...,
122122
process: (ValkeySubscription) async throws -> sending Value
123123
) async throws -> Value {
124-
try await self.ssubscribe(to: shardchannel, process: process)
124+
try await self.ssubscribe(to: shardchannels, process: process)
125125
}
126126

127127
/// Subscribe to list of shard channels and run closure with subscription
@@ -138,12 +138,12 @@ extension ValkeyClient {
138138
/// - Returns: Return value of closure
139139
@inlinable
140140
public func ssubscribe<Value>(
141-
to shardchannel: [String],
141+
to shardchannels: [String],
142142
process: (ValkeySubscription) async throws -> sending Value
143143
) async throws -> Value {
144144
try await self.subscribe(
145-
command: SSUBSCRIBE(shardchannel: shardchannel),
146-
filters: shardchannel.map { .shardChannel($0) },
145+
command: SSUBSCRIBE(shardchannels: shardchannels),
146+
filters: shardchannels.map { .shardChannel($0) },
147147
process: process
148148
)
149149
}

0 commit comments

Comments
 (0)