Skip to content

4.11.1 - make Redis Sendable

Latest
Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 20 Feb 19:46
b452702

What's Changed

make Redis Sendable by @AntVil in #217

  • counter warning from Application.Redis: Stored property 'redisInstances' of 'Sendable'-conforming class 'MyRedis' has non-sendable type '[Application.Redis]'; this is an error in the Swift 6 language mode

example for more context:

extension Application {
    public final class MyRedis {
        struct MyRedisKey: StorageKey {
            typealias Value = Application.MyRedis
        }

        private let redisInstances: [Application.Redis]
    }
}
This patch was released by @0xTim

Full Changelog: 4.11.0...4.11.1