Commit 03c45d7e authored by tavit ohanian's avatar tavit ohanian

refactor after forking multiformats

parent a387b602
Pipeline #911 passed with stages
in 21 seconds
// Package blocks contains the lowest level of DMS3LD data structures. // Package blocks contains the lowest level of LD data structures.
// A block is raw data accompanied by a CID. The CID contains the multihash // A block is raw data accompanied by a CID. The CID contains the multihash
// corresponding to the block. // corresponding to the block.
package blocks package blocks
...@@ -8,8 +8,8 @@ import ( ...@@ -8,8 +8,8 @@ import (
"fmt" "fmt"
mh "github.com/multiformats/go-multihash" mh "github.com/multiformats/go-multihash"
cid "gitlab.dms3.io/dms3/public/go-cid" cid "gitlab.dms3.io/dms3/go-cid"
u "gitlab.dms3.io/dms3/public/go-dms3-util" u "gitlab.dms3.io/dms3/go-dms3-util"
) )
// ErrWrongHash is returned when the Cid of a block is not the expected // ErrWrongHash is returned when the Cid of a block is not the expected
......
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"testing" "testing"
mh "github.com/multiformats/go-multihash" mh "github.com/multiformats/go-multihash"
cid "gitlab.dms3.io/dms3/public/go-cid" cid "gitlab.dms3.io/dms3/go-cid"
u "gitlab.dms3.io/dms3/public/go-dms3-util" u "gitlab.dms3.io/dms3/go-dms3-util"
) )
func TestBlocksBasic(t *testing.T) { func TestBlocksBasic(t *testing.T) {
......
module gitlab.dms3.io/dms3/public/go-block-format module gitlab.dms3.io/dms3/go-block-format
go 1.15 go 1.15
require ( require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/multiformats/go-multihash v0.0.14 github.com/multiformats/go-multihash v0.0.14
github.com/neelance/parallel v0.0.0-20160708114440-4de9ce63d14c // indirect gitlab.dms3.io/dms3/go-cid v0.0.3
github.com/opentracing/basictracer-go v1.1.0 // indirect gitlab.dms3.io/dms3/go-dms3-util v0.0.2
github.com/opentracing/opentracing-go v1.2.0 // indirect golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
github.com/prometheus/common v0.28.0 // indirect
github.com/slimsag/godocmd v0.0.0-20161025000126-a1005ad29fe3 // indirect
github.com/sourcegraph/ctxvfs v0.0.0-20180418081416-2b65f1b1ea81 // indirect
github.com/sourcegraph/go-langserver v2.0.0+incompatible // indirect
github.com/sourcegraph/jsonrpc2 v0.1.0 // indirect
gitlab.dms3.io/dms3/public/go-cid v0.0.2
gitlab.dms3.io/dms3/public/go-dms3-util v0.0.1
golang.org/x/sys v0.0.0-20210608053332-aa57babbf139 // indirect golang.org/x/sys v0.0.0-20210608053332-aa57babbf139 // indirect
golang.org/x/tools v0.1.2 // indirect
) )
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment