From 42155c45c90e9420e49089febf34608ddfdce9f8 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 23 Jul 2021 19:29:46 +1000 Subject: [PATCH] Use mc.ReservedStart from new go-multiformats --- go.mod | 2 +- go.sum | 4 ++-- plugin/plugins/git/git.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 96fae07a4033..b3c00cf22411 100644 --- a/go.mod +++ b/go.mod @@ -94,7 +94,7 @@ require ( github.com/multiformats/go-multiaddr v0.3.1 github.com/multiformats/go-multiaddr-dns v0.2.0 github.com/multiformats/go-multibase v0.0.3 - github.com/multiformats/go-multicodec v0.2.1-0.20210718225951-a237c4436b76 + github.com/multiformats/go-multicodec v0.2.1-0.20210723011827-52a3ac546597 github.com/multiformats/go-multihash v0.0.15 github.com/opentracing/opentracing-go v1.2.0 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 5b8c2ff683eb..3e3e9fef6e4a 100644 --- a/go.sum +++ b/go.sum @@ -942,8 +942,8 @@ github.com/multiformats/go-multiaddr-net v0.2.0/go.mod h1:gGdH3UXny6U3cKKYCvpXI5 github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= github.com/multiformats/go-multibase v0.0.3 h1:l/B6bJDQjvQ5G52jw4QGSYeOTZoAwIO77RblWplfIqk= github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= -github.com/multiformats/go-multicodec v0.2.1-0.20210718225951-a237c4436b76 h1:VD/M8CCDR5uOoNpeCSejcHp3MY7XaQYqLr3ANrDDRxQ= -github.com/multiformats/go-multicodec v0.2.1-0.20210718225951-a237c4436b76/go.mod h1:qGGaQmioCDh+TeFOnxrbU0DaIPw8yFgAZgFG0V7p1qQ= +github.com/multiformats/go-multicodec v0.2.1-0.20210723011827-52a3ac546597 h1:ULcqjrvbMRf7TiRiXlmXprupBxpeUkL8q2N8Xq+bNi4= +github.com/multiformats/go-multicodec v0.2.1-0.20210723011827-52a3ac546597/go.mod h1:qGGaQmioCDh+TeFOnxrbU0DaIPw8yFgAZgFG0V7p1qQ= github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= diff --git a/plugin/plugins/git/git.go b/plugin/plugins/git/git.go index 5799017fa006..e1d38e5b7d09 100644 --- a/plugin/plugins/git/git.go +++ b/plugin/plugins/git/git.go @@ -33,7 +33,7 @@ func (*gitPlugin) Version() string { func (*gitPlugin) Init(_ *plugin.Environment) error { // register a custom identifier in the reserved range for import of "zlib-encoded git objects." // TODO: give this a name. - multicodec.RegisterDecoder(uint64(0x300000+mc.GitRaw), decodeZlibGit) + multicodec.RegisterDecoder(uint64(mc.ReservedStart+mc.GitRaw), decodeZlibGit) return nil }