Skip to content

Commit 435c8e9

Browse files
authored
Sendable (#18)
* bump swift-multicodec to 0.2.1 to capture sendability changes * added sendable conformance
1 parent 4a3488f commit 435c8e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let package = Package(
2828
// Dependencies declare other packages that this package depends on.
2929
// .package(url: /* package url */, from: "1.0.0"),
3030
.package(url: "https://github.com/swift-libp2p/swift-varint.git", .upToNextMinor(from: "0.2.0")),
31-
.package(url: "https://github.com/swift-libp2p/swift-multicodec.git", .upToNextMinor(from: "0.2.0")),
31+
.package(url: "https://github.com/swift-libp2p/swift-multicodec.git", .upToNextMinor(from: "0.2.1")),
3232
.package(url: "https://github.com/swift-libp2p/swift-multibase.git", .upToNextMinor(from: "0.2.0")),
3333
.package(url: "https://github.com/swift-libp2p/swift-multihash.git", .upToNextMinor(from: "0.2.0")),
3434
.package(url: "https://github.com/swift-libp2p/swift-cid.git", .upToNextMinor(from: "0.2.0")),

Sources/Multiaddr/Address.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Multicodec
2222
import Multihash
2323
import VarInt
2424

25-
public struct Address: Equatable {
25+
public struct Address: Equatable, Sendable {
2626
let addrProtocol: MultiaddrProtocol
2727
let address: String?
2828

Sources/Multiaddr/Multiaddr.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import Foundation
2020
import VarInt
2121

22-
public struct Multiaddr: Equatable {
22+
public struct Multiaddr: Equatable, Sendable {
2323

2424
public private(set) var addresses: [Address] = []
2525

0 commit comments

Comments
 (0)