Skip to content

Commit

Permalink
switch to StreamingSet in cid
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Aug 15, 2018
1 parent c0e2f54 commit 5b87efc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 43 deletions.
3 changes: 1 addition & 2 deletions core/coreapi/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

coreiface "github.com/ipfs/go-ipfs/core/coreapi/interface"
caopts "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"github.com/ipfs/go-ipfs/thirdparty/streaming-cid-set"

dag "gx/ipfs/QmQzSpSjkdGHW6WFBhUG6P3t9K8yv7iucucT1cQaqJ6tgd/go-merkledag"
routing "gx/ipfs/QmSD6bSPcXaaR7LpQHjytLWQD7DrCsb415CWfpbd9Szemb/go-libp2p-routing"
Expand Down Expand Up @@ -99,7 +98,7 @@ func provideKeys(ctx context.Context, r routing.IpfsRouting, cids []*cid.Cid) er
}

func provideKeysRec(ctx context.Context, r routing.IpfsRouting, bs blockstore.Blockstore, cids []*cid.Cid) error {
provided := streamingset.NewStreamingSet()
provided := cid.NewStreamingSet()

errCh := make(chan error)
go func() {
Expand Down
5 changes: 2 additions & 3 deletions exchange/reprovide/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

pin "github.com/ipfs/go-ipfs/pin"

"github.com/ipfs/go-ipfs/thirdparty/streaming-cid-set"
merkledag "gx/ipfs/QmQzSpSjkdGHW6WFBhUG6P3t9K8yv7iucucT1cQaqJ6tgd/go-merkledag"
blocks "gx/ipfs/QmYBEfMSquSGnuxBthUoBJNs3F6p4VAPPvAgxq6XXGvTPh/go-ipfs-blockstore"
cid "gx/ipfs/QmYjnkEL7i731PirfVH1sis89evN7jt4otSHw5D2xXXwUV/go-cid"
Expand Down Expand Up @@ -44,8 +43,8 @@ func NewPinnedProvider(pinning pin.Pinner, dag ipld.DAGService, onlyRoots bool)
}
}

func pinSet(ctx context.Context, pinning pin.Pinner, dag ipld.DAGService, onlyRoots bool) (*streamingset.StreamingSet, error) {
set := streamingset.NewStreamingSet()
func pinSet(ctx context.Context, pinning pin.Pinner, dag ipld.DAGService, onlyRoots bool) (*cid.StreamingSet, error) {
set := cid.NewStreamingSet()

go func() {
ctx, cancel := context.WithCancel(ctx)
Expand Down
38 changes: 0 additions & 38 deletions thirdparty/streaming-cid-set/set.go

This file was deleted.

0 comments on commit 5b87efc

Please sign in to comment.