Skip to content

Commit

Permalink
Use cid.Raw as code when wrapping multihash
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 19, 2024
1 parent 27df281 commit 9d909bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multiaddr"
"github.com/multiformats/go-multicodec"
"github.com/multiformats/go-multihash"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
Expand Down Expand Up @@ -118,7 +117,7 @@ func startServer(ctx context.Context, d *daemon, tcpListener, metricsUsername, m
return

Check warning on line 117 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L112-L117

Added lines #L112 - L117 were not covered by tests
}
}
cidKey = cid.NewCidV1(uint64(multicodec.Cidv1), mh)
cidKey = cid.NewCidV1(cid.Raw, mh)

Check warning on line 120 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L120

Added line #L120 was not covered by tests
}

checkTimeout := defaultCheckTimeout
Expand Down

0 comments on commit 9d909bd

Please sign in to comment.