Skip to content

Commit 5b87efc

Browse files
committed
switch to StreamingSet in cid
License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent c0e2f54 commit 5b87efc

File tree

3 files changed

+3
-43
lines changed

3 files changed

+3
-43
lines changed

core/coreapi/dht.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77

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

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

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

104103
errCh := make(chan error)
105104
go func() {

exchange/reprovide/providers.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55

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

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

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

5049
go func() {
5150
ctx, cancel := context.WithCancel(ctx)

thirdparty/streaming-cid-set/set.go

-38
This file was deleted.

0 commit comments

Comments
 (0)