File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Sources/RediStack/ChannelHandlers
Tests/RediStackIntegrationTests Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments