Skip to content

Commit

Permalink
feat: remove go-ipld-format globals
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jun 1, 2023
1 parent 25ab3d8 commit f20b322
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions merkledag.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
blocks "github.com/ipfs/go-block-format"
bserv "github.com/ipfs/go-blockservice"
cid "github.com/ipfs/go-cid"
ipldcbor "github.com/ipfs/go-ipld-cbor"
format "github.com/ipfs/go-ipld-format"
legacy "github.com/ipfs/go-ipld-legacy"
dagpb "github.com/ipld/go-codec-dagpb"
Expand All @@ -19,15 +18,6 @@ import (
basicnode "github.com/ipld/go-ipld-prime/node/basic"
)

// TODO: We should move these registrations elsewhere. Really, most of the IPLD
// functionality should go in a `go-ipld` repo but that will take a lot of work
// and design.
func init() {
format.Register(cid.DagProtobuf, DecodeProtobufBlock)
format.Register(cid.Raw, DecodeRawBlock)
format.Register(cid.DagCBOR, ipldcbor.DecodeBlock)
}

// contextKey is a type to use as value for the ProgressTracker contexts.
type contextKey string

Expand Down

0 comments on commit f20b322

Please sign in to comment.