Build Information
Successful build of redi-s, reference 0.6.0 (4ec4de
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 06:49:33 UTC.
Swift 6 data race errors: 18
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | if !subscribedChannels.contains(key) {
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | ctx.handler.subscribedChannels!.insert(key)
55 | let count = ctx.handler.subscribedChannels!.count
56 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | RESPValue(bulkString: key),
58 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
15 | import Dispatch
16 | import NIO
17 | import enum NIORedis.RESPValue
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
18 | import struct Foundation.Data
19 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:45:13: warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | pubsub.Q.async {
44 | for key in channelKeys {
45 | if !subscribedChannels.contains(key) {
| `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:46:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
44 | for key in channelKeys {
45 | if !subscribedChannels.contains(key) {
46 | subscribedChannels.insert(key)
| `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | pubsub.subscribe(key, handler: ctx.handler)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:51:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |
50 | ctx.eventLoop.execute {
51 | if ctx.handler.subscribedChannels == nil {
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | ctx.handler.subscribedChannels = Set()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | ctx.handler.subscribedChannels!.insert(key)
55 | let count = ctx.handler.subscribedChannels!.count
56 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | RESPValue(bulkString: key),
58 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | ctx.handler.subscribedChannels?.remove(key)
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | RESPValue(bulkString: key),
86 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:76:12: warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
74 | pubsub.Q.async {
75 | for key in channelKeys {
76 | if subscribedChannels.contains(key) {
| `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:77:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
75 | for key in channelKeys {
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
| `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
78 | pubsub.unsubscribe(key, handler: ctx.handler)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:82:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 |
81 | ctx.eventLoop.execute {
82 | ctx.handler.subscribedChannels?.remove(key)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | ctx.handler.subscribedChannels?.remove(key)
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | RESPValue(bulkString: key),
86 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | ctx.handler.subscribedPatterns!.insert(key)
118 | let count = ctx.handler.subscribedPatterns!.count
119 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | RESPValue.bulkString(bb),
121 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:108:13: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
106 | pubsub.Q.async {
107 | for ( bb, key ) in patterns {
108 | if !subscribedPatterns.contains(key) {
| `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:109:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | for ( bb, key ) in patterns {
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
| `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | pubsub.subscribe(key, handler: ctx.handler)
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:114:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 |
113 | ctx.eventLoop.execute {
114 | if ctx.handler.subscribedPatterns == nil {
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | ctx.handler.subscribedPatterns = Set()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | ctx.handler.subscribedPatterns!.insert(key)
118 | let count = ctx.handler.subscribedPatterns!.count
119 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | RESPValue.bulkString(bb),
121 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | ctx.handler.subscribedPatterns?.remove(key)
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | RESPValue.bulkString(bb),
153 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:143:12: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | pubsub.Q.async {
142 | for ( bb, key ) in patterns {
143 | if subscribedPatterns.contains(key) {
| `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:144:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
142 | for ( bb, key ) in patterns {
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
| `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
145 | pubsub.unsubscribe(key, handler: ctx.handler)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:149:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |
148 | ctx.eventLoop.execute {
149 | ctx.handler.subscribedPatterns?.remove(key)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | ctx.handler.subscribedPatterns?.remove(key)
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | RESPValue.bulkString(bb),
153 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | let pubSub = ctx.handler.server.pubSub
201 | pubSub.Q.async {
202 | ctx.write(pubSub.patternToEventLoopToSubscribers.count)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:21: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | let pubSub = ctx.handler.server.pubSub
201 | pubSub.Q.async {
202 | ctx.write(pubSub.patternToEventLoopToSubscribers.count)
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:218:30: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
216 |
217 | for channel in channels {
218 | guard let loop2Sub = pubSub.channelToEventLoopToSubscribers[channel],
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | !loop2Sub.isEmpty else {
220 | channelCountPairs.append(RESPValue(bulkString: channel))
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:230:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 |
230 | ctx.write(.array(channelCountPairs))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:241:36: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | var channels = ContiguousArray<RESPValue>()
240 |
241 | for ( channel, loop2Sub ) in pubSub.channelToEventLoopToSubscribers {
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | guard !loop2Sub.isEmpty else { continue }
243 | if let pattern = pattern {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:257:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
255 | }
256 |
257 | ctx.write(.array(channels))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
258 | }
259 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
[252/265] Compiling RedisServer RedisCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:28:19: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | let pubsub = ctx.handler.server.pubSub
27 | pubsub.Q.async {
28 | let count = pubsub.publish(channel, message)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | ctx.write(count)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:29:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | pubsub.Q.async {
28 | let count = pubsub.publish(channel, message)
29 | ctx.write(count)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | if !subscribedChannels.contains(key) {
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | if !subscribedChannels.contains(key) {
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | ctx.handler.subscribedChannels!.insert(key)
55 | let count = ctx.handler.subscribedChannels!.count
56 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | RESPValue(bulkString: key),
58 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
15 | import Dispatch
16 | import NIO
17 | import enum NIORedis.RESPValue
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
18 | import struct Foundation.Data
19 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:45:13: warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
43 | pubsub.Q.async {
44 | for key in channelKeys {
45 | if !subscribedChannels.contains(key) {
| `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
46 | subscribedChannels.insert(key)
47 | pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:46:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
44 | for key in channelKeys {
45 | if !subscribedChannels.contains(key) {
46 | subscribedChannels.insert(key)
| `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | pubsub.subscribe(key, handler: ctx.handler)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:51:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |
50 | ctx.eventLoop.execute {
51 | if ctx.handler.subscribedChannels == nil {
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | ctx.handler.subscribedChannels = Set()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | ctx.handler.subscribedChannels!.insert(key)
55 | let count = ctx.handler.subscribedChannels!.count
56 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | RESPValue(bulkString: key),
58 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | ctx.handler.subscribedChannels?.remove(key)
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | RESPValue(bulkString: key),
86 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:76:12: warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
74 | pubsub.Q.async {
75 | for key in channelKeys {
76 | if subscribedChannels.contains(key) {
| `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
77 | subscribedChannels.remove(key)
78 | pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:77:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
75 | for key in channelKeys {
76 | if subscribedChannels.contains(key) {
77 | subscribedChannels.remove(key)
| `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code; this is an error in the Swift 6 language mode
78 | pubsub.unsubscribe(key, handler: ctx.handler)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:82:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 |
81 | ctx.eventLoop.execute {
82 | ctx.handler.subscribedChannels?.remove(key)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | ctx.handler.subscribedChannels?.remove(key)
83 | let count = ctx.handler.subscribedChannels?.count ?? 0
84 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | RESPValue(bulkString: key),
86 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | ctx.handler.subscribedPatterns!.insert(key)
118 | let count = ctx.handler.subscribedPatterns!.count
119 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | RESPValue.bulkString(bb),
121 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:108:13: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
106 | pubsub.Q.async {
107 | for ( bb, key ) in patterns {
108 | if !subscribedPatterns.contains(key) {
| `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
109 | subscribedPatterns.insert(key)
110 | pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:109:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | for ( bb, key ) in patterns {
108 | if !subscribedPatterns.contains(key) {
109 | subscribedPatterns.insert(key)
| `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | pubsub.subscribe(key, handler: ctx.handler)
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:114:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 |
113 | ctx.eventLoop.execute {
114 | if ctx.handler.subscribedPatterns == nil {
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | ctx.handler.subscribedPatterns = Set()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | ctx.handler.subscribedPatterns!.insert(key)
118 | let count = ctx.handler.subscribedPatterns!.count
119 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | RESPValue.bulkString(bb),
121 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | ctx.handler.subscribedPatterns?.remove(key)
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | RESPValue.bulkString(bb),
153 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:143:12: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | pubsub.Q.async {
142 | for ( bb, key ) in patterns {
143 | if subscribedPatterns.contains(key) {
| `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | subscribedPatterns.remove(key)
145 | pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:144:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
142 | for ( bb, key ) in patterns {
143 | if subscribedPatterns.contains(key) {
144 | subscribedPatterns.remove(key)
| `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code; this is an error in the Swift 6 language mode
145 | pubsub.unsubscribe(key, handler: ctx.handler)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:149:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |
148 | ctx.eventLoop.execute {
149 | ctx.handler.subscribedPatterns?.remove(key)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | ctx.handler.subscribedPatterns?.remove(key)
150 | let count = ctx.handler.subscribedPatterns?.count ?? 0
151 | ctx.write([ subscribeCmd,
| `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | RESPValue.bulkString(bb),
153 | RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | let pubSub = ctx.handler.server.pubSub
201 | pubSub.Q.async {
202 | ctx.write(pubSub.patternToEventLoopToSubscribers.count)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:21: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | let pubSub = ctx.handler.server.pubSub
201 | pubSub.Q.async {
202 | ctx.write(pubSub.patternToEventLoopToSubscribers.count)
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:218:30: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
216 |
217 | for channel in channels {
218 | guard let loop2Sub = pubSub.channelToEventLoopToSubscribers[channel],
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | !loop2Sub.isEmpty else {
220 | channelCountPairs.append(RESPValue(bulkString: channel))
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:230:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | }
229 |
230 | ctx.write(.array(channelCountPairs))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:241:36: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | var channels = ContiguousArray<RESPValue>()
240 |
241 | for ( channel, loop2Sub ) in pubSub.channelToEventLoopToSubscribers {
| `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | guard !loop2Sub.isEmpty else { continue }
243 | if let pattern = pattern {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
18 | import enum NIORedis.RESPValue
19 |
20 | class PubSub {
| `- note: class 'PubSub' does not conform to the 'Sendable' protocol
21 |
22 | typealias SubscriberList = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:257:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
255 | }
256 |
257 | ctx.write(.array(channels))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
258 | }
259 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
[253/265] Emitting module RedisServer
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:21:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | fileprivate enum TypeValues {
21 | static let none = RESPValue(simpleString: "none")
| `- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
22 | static let string = RESPValue(simpleString: "string")
23 | static let list = RESPValue(simpleString: "list")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import enum NIORedis.RESPValue
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
16 | import struct NIORedis.RESPError
17 | import struct NIO.ByteBuffer
:
19 |
20 | fileprivate enum TypeValues {
21 | static let none = RESPValue(simpleString: "none")
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let string = RESPValue(simpleString: "string")
23 | static let list = RESPValue(simpleString: "list")
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:22:14: warning: static property 'string' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
20 | fileprivate enum TypeValues {
21 | static let none = RESPValue(simpleString: "none")
22 | static let string = RESPValue(simpleString: "string")
| |- warning: static property 'string' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'string' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static let list = RESPValue(simpleString: "list")
24 | static let set = RESPValue(simpleString: "set")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:23:14: warning: static property 'list' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let none = RESPValue(simpleString: "none")
22 | static let string = RESPValue(simpleString: "string")
23 | static let list = RESPValue(simpleString: "list")
| |- warning: static property 'list' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'list' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let set = RESPValue(simpleString: "set")
25 | static let hash = RESPValue(simpleString: "hash")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:24:14: warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
22 | static let string = RESPValue(simpleString: "string")
23 | static let list = RESPValue(simpleString: "list")
24 | static let set = RESPValue(simpleString: "set")
| |- warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'set' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static let hash = RESPValue(simpleString: "hash")
26 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/KeyCommands.swift:25:14: warning: static property 'hash' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
23 | static let list = RESPValue(simpleString: "list")
24 | static let set = RESPValue(simpleString: "set")
25 | static let hash = RESPValue(simpleString: "hash")
| |- warning: static property 'hash' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hash' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[254/265] Compiling RedisServer ServerCommands.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[255/265] Compiling RedisServer SetCommands.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[256/265] Compiling RedisServer StringCommands.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[257/265] Compiling RedisServer RedisError.swift
[258/265] Compiling RedisServer RedisList.swift
[259/265] Compiling RedisServer RedisCommandHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:82:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
80 | server.pubSub.Q.async {
81 | for channel in channels {
82 | self.server.pubSub.unsubscribe(channel, handler: self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:91:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
89 | server.pubSub.Q.async {
90 | for pattern in patterns {
91 | self.server.pubSub.unsubscribe(pattern, handler: self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:99:7: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
97 |
98 | server.Q.async {
99 | self.server._unregisterClient(self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | }
101 | self.channel = nil
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:98:20: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
96 | Q.async { // Safe? Unsafe. No idea. Probably not :-)
97 | // TODO: I think the proper trick is to use a pipe here.
98 | if let dbs = self.databases {
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | do {
100 | self.logger.warn("User requested shutdown...")
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:227:28: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
225 |
226 | Q.async {
227 | for ( _, client ) in self.clients {
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 | guard let channel = client.channel else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:31: warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 | guard let channel = client.channel else { continue }
230 | channel.writeAndFlush(logPacket, promise: nil)
| `- warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
19 | import class Foundation.JSONDecoder
20 | import class Atomics.ManagedAtomic
21 | import enum NIORedis.RESPValue
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
22 | import NIO
23 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
253 | .flatMap {
254 | let cid = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 | let handler = RedisCommandHandler(id: cid, server: self)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
253 | .flatMap {
254 | let cid = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 | let handler = RedisCommandHandler(id: cid, server: self)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:15: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
256 |
257 | self.Q.async {
258 | self._registerClient(handler)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:36: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
258 | self._registerClient(handler)
| `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
[260/265] Compiling RedisServer RedisServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:82:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
80 | server.pubSub.Q.async {
81 | for channel in channels {
82 | self.server.pubSub.unsubscribe(channel, handler: self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:91:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
89 | server.pubSub.Q.async {
90 | for pattern in patterns {
91 | self.server.pubSub.unsubscribe(pattern, handler: self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:99:7: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
:
97 |
98 | server.Q.async {
99 | self.server._unregisterClient(self)
| `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | }
101 | self.channel = nil
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:98:20: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
96 | Q.async { // Safe? Unsafe. No idea. Probably not :-)
97 | // TODO: I think the proper trick is to use a pipe here.
98 | if let dbs = self.databases {
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | do {
100 | self.logger.warn("User requested shutdown...")
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:227:28: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
225 |
226 | Q.async {
227 | for ( _, client ) in self.clients {
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 | guard let channel = client.channel else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:31: warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 | guard let channel = client.channel else { continue }
230 | channel.writeAndFlush(logPacket, promise: nil)
| `- warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
19 | import class Foundation.JSONDecoder
20 | import class Atomics.ManagedAtomic
21 | import enum NIORedis.RESPValue
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
22 | import NIO
23 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
253 | .flatMap {
254 | let cid = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 | let handler = RedisCommandHandler(id: cid, server: self)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
253 | .flatMap {
254 | let cid = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 | let handler = RedisCommandHandler(id: cid, server: self)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:15: warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
:
256 |
257 | self.Q.async {
258 | self._registerClient(handler)
| `- warning: capture of 'self' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:36: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
256 |
257 | self.Q.async {
258 | self._registerClient(handler)
| `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
[261/265] Compiling RedisServer RedisValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[262/265] Compiling RedisServer RedisValueCoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[263/268] Compiling redi_s ConfigFile.swift
[264/268] Emitting module redi_s
[265/268] Compiling redi_s main.swift
[265/268] Write Objects.LinkFileList
[266/268] Linking redi-s
[267/268] Applying redi-s
Build complete! (39.03s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio-redis",
"requirement" : {
"range" : [
{
"lower_bound" : "0.11.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftNIOExtras/swift-nio-redis.git"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics"
}
],
"manifest_display_name" : "redi-s",
"name" : "redi-s",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "RedisServer",
"targets" : [
"RedisServer"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "redi-s",
"targets" : [
"redi-s"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "redi_s",
"module_type" : "SwiftTarget",
"name" : "redi-s",
"path" : "Sources/redi-s",
"product_memberships" : [
"redi-s"
],
"sources" : [
"ConfigFile.swift",
"main.swift"
],
"target_dependencies" : [
"RedisServer"
],
"type" : "executable"
},
{
"c99name" : "RedisServer",
"module_type" : "SwiftTarget",
"name" : "RedisServer",
"path" : "Sources/RedisServer",
"product_dependencies" : [
"NIORedis",
"Atomics"
],
"product_memberships" : [
"RedisServer",
"redi-s"
],
"sources" : [
"Commands/CommandTable.swift",
"Commands/CommandType.swift",
"Commands/ExpirationCommands.swift",
"Commands/HashCommands.swift",
"Commands/IntCommands.swift",
"Commands/KeyCommands.swift",
"Commands/ListCommands.swift",
"Commands/PubSubCommands.swift",
"Commands/RedisCommand.swift",
"Commands/ServerCommands.swift",
"Commands/SetCommands.swift",
"Commands/StringCommands.swift",
"Database/Database.swift",
"Database/DumpManager.swift",
"Helpers/RedisLogger.swift",
"Helpers/RedisPattern.swift",
"Helpers/Utilities.swift",
"Server/Monitor.swift",
"Server/PubSub.swift",
"Server/RedisCommandContext.swift",
"Server/RedisCommandHandler.swift",
"Server/RedisServer.swift",
"Values/RedisError.swift",
"Values/RedisList.swift",
"Values/RedisValue.swift",
"Values/RedisValueCoding.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.