Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IPFS overload #1

Merged
merged 5 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
7 changes: 1 addition & 6 deletions Sources/Multicodec/Codecs+Equatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ import Foundation

public extension Codecs {
static func ==(lhs: Codecs, rhs: Codecs) -> Bool {
switch (lhs, rhs) {
case (.p2p, .ipfs): return true
case (.ipfs, .p2p): return true
default:
return lhs.rawValue == rhs.rawValue
}
return lhs.rawValue == rhs.rawValue
}

static func ==(lhs: Codecs, rhs: Int64) -> Bool {
Expand Down
Loading