Commit e06f314 1 parent 7d0a0b8 commit e06f314 Copy full SHA for e06f314
File tree 4 files changed +10
-6
lines changed
Sources/RediStack/ChannelHandlers
Tests/RediStackIntegrationTests
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,3 @@ changelog:
15
15
- title : 🚨🚨🚨 Missing Labels - Add labels to the prs listed here and generate the release notes again
16
16
labels :
17
17
- " *"
18
-
Original file line number Diff line number Diff line change 17
17
with :
18
18
linux_exclude_swift_versions : " [{\" swift_version\" : \" 5.8\" }]"
19
19
# 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
21
21
linux_env_vars : REDIS_URL=redis
22
22
linux_build_command : bash -c 'redis-server &; swift test'
23
23
enable_windows_checks : false
Original file line number Diff line number Diff line change @@ -328,11 +328,14 @@ extension RedisPubSubHandler {
328
328
guard
329
329
let latestSubscriptionCount = results
330
330
. 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 ( )
332
334
. compactMap ( { try ? $0. get ( ) } )
333
335
. 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
336
339
else { return try results. first!. get ( ) }
337
340
338
341
return latestSubscriptionCount
Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ extension RedisConnectionPoolTests {
156
156
}
157
157
}
158
158
159
- promises. forEach { $0. succeed ( ( ) ) }
159
+ for promise in promises {
160
+ promise. succeed ( ( ) )
161
+ }
160
162
_ = try EventLoopFuture < Void >
161
163
. whenAllSucceed ( futures, on: pool. eventLoop)
162
164
. always { _ in
You can’t perform that action at this time.
0 commit comments