5b74a71dd3
Define all types to spec, modify interfaces, wrap old code fix(builder): use client blockstore for retrieval feat(retrieval): add node implementations add node adapters for client & provider so that retrieval can be extracted
16 lines
337 B
Go
16 lines
337 B
Go
package discovery
|
|
|
|
import (
|
|
cbor "github.com/ipfs/go-ipld-cbor"
|
|
|
|
retrievalmarket "github.com/filecoin-project/lotus/retrieval"
|
|
)
|
|
|
|
func init() {
|
|
cbor.RegisterCborType(retrievalmarket.RetrievalPeer{})
|
|
}
|
|
|
|
func Multi(r retrievalmarket.PeerResolver) retrievalmarket.PeerResolver { // TODO: actually support multiple mechanisms
|
|
return r
|
|
}
|