Skip to content

Commit 1b146bd

Browse files
Fix sendability warnings (#114)
1 parent f27f333 commit 1b146bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Kafka/KafkaError.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import Crdkafka
1717
/// An error that can occur on `Kafka` operations
1818
///
1919
/// - Note: `Hashable` conformance only considers the ``KafkaError/code``.
20-
public struct KafkaError: Error, CustomStringConvertible {
20+
public struct KafkaError: Error, CustomStringConvertible, @unchecked Sendable {
21+
// Note: @unchecked because we use a backing class for storage (copy-on-write).
22+
2123
private var backing: Backing
2224

2325
/// Represents the kind of error that was encountered.

0 commit comments

Comments
 (0)