Skip to content

Commit e06f314

Browse files
committed
try to install redis
1 parent 7d0a0b8 commit e06f314

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.github/release.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ changelog:
1515
- title: 🚨🚨🚨 Missing Labels - Add labels to the prs listed here and generate the release notes again
1616
labels:
1717
- "*"
18-

.github/workflows/pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
linux_exclude_swift_versions: "[{\"swift_version\": \"5.8\"}]"
1919
# since we don't have systemctl, we run the redis server manually in the background
20-
linux_pre_build_command: apt-get update -y && apt-get install redis
20+
linux_pre_build_command: apt-get update -y && apt-get install redis -y
2121
linux_env_vars: REDIS_URL=redis
2222
linux_build_command: bash -c 'redis-server &; swift test'
2323
enable_windows_checks: false

Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift

+6-3
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,14 @@ extension RedisPubSubHandler {
328328
guard
329329
let latestSubscriptionCount = results
330330
.lazy
331-
.reversed() // reverse to save time-complexity, as we just need the last (first) successful value
331+
// reverse to save time-complexity,
332+
// as we just need the last (first) successful value
333+
.reversed()
332334
.compactMap({ try? $0.get() })
333335
.first
334-
// if we have no success cases, we will still have at least one response that we can
335-
// rely on the 'get' method to throw the error for us, rather than unwrapping it ourselves
336+
// if we have no success cases, we will still have at least
337+
// one response that we can rely on the 'get' method to
338+
// throw the error for us, rather than unwrapping it ourselves
336339
else { return try results.first!.get() }
337340

338341
return latestSubscriptionCount

Tests/RediStackIntegrationTests/RedisConnectionPoolTests.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ extension RedisConnectionPoolTests {
156156
}
157157
}
158158

159-
promises.forEach { $0.succeed(()) }
159+
for promise in promises {
160+
promise.succeed(())
161+
}
160162
_ = try EventLoopFuture<Void>
161163
.whenAllSucceed(futures, on: pool.eventLoop)
162164
.always { _ in

0 commit comments

Comments
 (0)