Skip to content

Commit f56fe1a

Browse files
committed
update curio dependency
1 parent 8d029e4 commit f56fe1a

File tree

5 files changed

+114
-84
lines changed

5 files changed

+114
-84
lines changed

cmd/booster-bitswap/client.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/ipld/go-ipld-prime"
1414
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
1515
"github.com/ipld/go-ipld-prime/traversal"
16+
nilrouting "github.com/libp2p/go-libp2p-routing-helpers"
1617
"github.com/libp2p/go-libp2p/core/host"
1718
mh "github.com/multiformats/go-multihash"
1819

@@ -21,7 +22,6 @@ import (
2122
lcli "github.com/filecoin-project/lotus/cli"
2223
"github.com/ipfs/boxo/bitswap/client"
2324
bsnetwork "github.com/ipfs/boxo/bitswap/network"
24-
nilrouting "github.com/ipfs/boxo/routing/none"
2525
blocks "github.com/ipfs/go-block-format"
2626
"github.com/ipfs/go-cid"
2727
ipldlegacy "github.com/ipfs/go-ipld-legacy"
@@ -96,10 +96,7 @@ var fetchCmd = &cli.Command{
9696
}
9797

9898
// Create a bitswap client
99-
nilRouter, err := nilrouting.ConstructNilRouting(ctx, nil, nil, nil)
100-
if err != nil {
101-
return err
102-
}
99+
nilRouter := nilrouting.Null{}
103100
net := bsnetwork.NewFromIpfsHost(host, nilRouter)
104101
bs, err := blockstore.OpenReadWrite(outputCarPath, []cid.Cid{rootCid}, blockstore.UseWholeCIDs(true))
105102
if err != nil {

cmd/booster-bitswap/server.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
bsnetwork "github.com/ipfs/boxo/bitswap/network"
1010
"github.com/ipfs/boxo/bitswap/server"
1111
blockstore "github.com/ipfs/boxo/blockstore"
12-
nilrouting "github.com/ipfs/boxo/routing/none"
1312
"github.com/ipfs/go-cid"
13+
nilrouting "github.com/libp2p/go-libp2p-routing-helpers"
1414
"github.com/libp2p/go-libp2p/core/host"
1515
"github.com/libp2p/go-libp2p/core/peer"
1616
)
@@ -66,10 +66,7 @@ func (s *BitswapServer) Start(ctx context.Context, proxy *peer.AddrInfo, opts *B
6666
}
6767

6868
// Start a bitswap server on the provider
69-
nilRouter, err := nilrouting.ConstructNilRouting(s.ctx, nil, nil, nil)
70-
if err != nil {
71-
return err
72-
}
69+
nilRouter := nilrouting.Null{}
7370
bsopts := []server.Option{
7471
server.EngineBlockstoreWorkerCount(opts.EngineBlockstoreWorkerCount),
7572
server.EngineTaskWorkerCount(opts.EngineTaskWorkerCount),

go.mod

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/fatih/color v1.16.0
2424
github.com/filecoin-project/boost-graphsync v0.13.12
2525
github.com/filecoin-project/boost/extern/boostd-data v0.0.0-20231124125934-3233c510357f
26-
github.com/filecoin-project/curio v1.23.2-0.20241017101155-587dd6361137
26+
github.com/filecoin-project/curio v1.24.3
2727
github.com/filecoin-project/dagstore v0.7.0
2828
github.com/filecoin-project/go-address v1.2.0
2929
github.com/filecoin-project/go-bitfield v0.2.4
@@ -50,7 +50,7 @@ require (
5050
github.com/graph-gophers/graphql-transport-ws v0.0.2
5151
github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e
5252
github.com/hashicorp/go-multierror v1.1.1
53-
github.com/ipfs/boxo v0.20.0
53+
github.com/ipfs/boxo v0.21.0
5454
github.com/ipfs/go-block-format v0.2.0
5555
github.com/ipfs/go-cid v0.4.1
5656
github.com/ipfs/go-cidutil v0.1.0
@@ -66,17 +66,17 @@ require (
6666
github.com/ipfs/go-metrics-interface v0.0.1
6767
github.com/ipfs/go-unixfsnode v1.9.0
6868
github.com/ipfs/kubo v0.22.0
69-
github.com/ipld/frisbii v0.4.1
69+
github.com/ipld/frisbii v0.6.1
7070
github.com/ipld/go-car v0.6.2
7171
github.com/ipld/go-car/v2 v2.13.1
7272
github.com/ipld/go-codec-dagpb v1.6.0
73-
github.com/ipld/go-fixtureplate v0.0.2
73+
github.com/ipld/go-fixtureplate v0.0.3
7474
github.com/ipld/go-ipld-prime v0.21.0
7575
github.com/ipld/go-ipld-selector-text-lite v0.0.1
7676
github.com/ipld/go-trustless-utils v0.4.1
7777
github.com/ipld/ipld/specs v0.0.0-20231012031213-54d3b21deda4
78-
github.com/ipni/go-libipni v0.5.2
79-
github.com/ipni/index-provider v0.14.2
78+
github.com/ipni/go-libipni v0.6.13
79+
github.com/ipni/index-provider v0.15.4
8080
github.com/ipni/ipni-cli v0.1.1
8181
github.com/ipni/storetheindex v0.8.1
8282
github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c
@@ -86,8 +86,9 @@ require (
8686
github.com/libp2p/go-libp2p v0.37.2
8787
github.com/libp2p/go-libp2p-http v0.5.0
8888
github.com/libp2p/go-libp2p-kad-dht v0.25.2
89-
github.com/libp2p/go-libp2p-pubsub v0.11.0
89+
github.com/libp2p/go-libp2p-pubsub v0.12.0
9090
github.com/libp2p/go-libp2p-record v0.2.0
91+
github.com/libp2p/go-libp2p-routing-helpers v0.7.3
9192
github.com/libp2p/go-msgio v0.3.0
9293
github.com/manifoldco/promptui v0.9.0
9394
github.com/mattn/go-sqlite3 v1.14.16
@@ -106,7 +107,7 @@ require (
106107
github.com/rs/cors v1.7.0
107108
github.com/schollz/progressbar/v3 v3.14.1
108109
github.com/stretchr/testify v1.10.0
109-
github.com/urfave/cli/v2 v2.25.7
110+
github.com/urfave/cli/v2 v2.27.4
110111
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc
111112
github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11
112113
github.com/whyrusleeping/cbor-gen v0.2.0
@@ -118,12 +119,12 @@ require (
118119
go.uber.org/fx v1.23.0
119120
go.uber.org/multierr v1.11.0
120121
go.uber.org/zap v1.27.0
121-
golang.org/x/crypto v0.29.0
122+
golang.org/x/crypto v0.31.0
122123
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
123124
golang.org/x/net v0.30.0
124-
golang.org/x/sync v0.9.0
125-
golang.org/x/term v0.26.0
126-
golang.org/x/text v0.20.0
125+
golang.org/x/sync v0.10.0
126+
golang.org/x/term v0.27.0
127+
golang.org/x/text v0.21.0
127128
golang.org/x/tools v0.26.0
128129
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
129130
gopkg.in/cheggaaa/pb.v1 v1.0.28
@@ -196,7 +197,7 @@ require (
196197
github.com/filecoin-project/specs-actors/v8 v8.0.1 // indirect
197198
github.com/flynn/noise v1.1.0 // indirect
198199
github.com/francoispqt/gojay v1.2.13 // indirect
199-
github.com/gammazero/channelqueue v0.2.1 // indirect
200+
github.com/gammazero/channelqueue v0.2.2 // indirect
200201
github.com/gammazero/deque v0.2.1 // indirect
201202
github.com/gdamore/encoding v1.0.0 // indirect
202203
github.com/gdamore/tcell/v2 v2.2.0 // indirect
@@ -223,11 +224,9 @@ require (
223224
github.com/gorilla/websocket v1.5.3 // indirect
224225
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
225226
github.com/hako/durafmt v0.0.0-20200710122514-c0fb7b4da026 // indirect
226-
github.com/hannahhoward/cbor-gen-for v0.0.0-20230214144701-5d17c9d5243c // indirect
227227
github.com/hashicorp/errwrap v1.1.0 // indirect
228228
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
229-
github.com/hashicorp/go-hclog v1.3.0 // indirect
230-
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
229+
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
231230
github.com/hashicorp/golang-lru v1.0.2 // indirect
232231
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 // indirect
233232
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
@@ -242,7 +241,6 @@ require (
242241
github.com/ipfs/go-ds-badger2 v0.1.3 // indirect
243242
github.com/ipfs/go-ds-measure v0.2.0 // indirect
244243
github.com/ipfs/go-fs-lock v0.0.7 // indirect
245-
github.com/ipfs/go-graphsync v0.17.0 // indirect
246244
github.com/ipfs/go-ipfs-blockstore v1.3.1 // indirect
247245
github.com/ipfs/go-ipfs-chunker v0.0.5 // indirect
248246
github.com/ipfs/go-ipfs-delay v0.0.1 // indirect
@@ -254,7 +252,7 @@ require (
254252
github.com/ipfs/go-merkledag v0.11.0 // indirect
255253
github.com/ipfs/go-peertaskqueue v0.8.1 // indirect
256254
github.com/ipfs/go-verifcid v0.0.3 // indirect
257-
github.com/ipld/go-ipld-adl-hamt v0.0.0-20220616142416-9004dbd839e0 // indirect
255+
github.com/ipld/go-ipld-adl-hamt v0.0.0-20240322071803-376decb85801 // indirect
258256
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
259257
github.com/jackc/pgconn v1.11.0 // indirect
260258
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438 // indirect
@@ -282,7 +280,6 @@ require (
282280
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
283281
github.com/libp2p/go-libp2p-gostream v0.6.0 // indirect
284282
github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect
285-
github.com/libp2p/go-libp2p-routing-helpers v0.7.3 // indirect
286283
github.com/libp2p/go-maddr-filter v0.1.0 // indirect
287284
github.com/libp2p/go-nat v0.2.0 // indirect
288285
github.com/libp2p/go-netroute v0.2.1 // indirect
@@ -348,6 +345,7 @@ require (
348345
github.com/samber/lo v1.39.0 // indirect
349346
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
350347
github.com/sirupsen/logrus v1.9.3 // indirect
348+
github.com/snadrus/must v0.0.0-20240605044437-98cedd57f8eb // indirect
351349
github.com/spaolacci/murmur3 v1.1.0 // indirect
352350
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
353351
github.com/tklauser/go-sysconf v0.3.12 // indirect
@@ -363,8 +361,8 @@ require (
363361
github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 // indirect
364362
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
365363
github.com/wlynxg/anet v0.0.5 // indirect
366-
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
367-
github.com/yugabyte/gocql v0.0.0-20230831121436-1e2272bb6bb6 // indirect
364+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
365+
github.com/yugabyte/gocql v1.6.0-yb-1 // indirect
368366
github.com/yugabyte/pgx/v5 v5.5.3-yb-2 // indirect
369367
github.com/zondax/hid v0.9.2 // indirect
370368
github.com/zondax/ledger-filecoin-go v0.11.1 // indirect
@@ -382,10 +380,10 @@ require (
382380
go.uber.org/mock v0.5.0 // indirect
383381
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
384382
golang.org/x/mod v0.21.0 // indirect
385-
golang.org/x/sys v0.27.0 // indirect
383+
golang.org/x/sys v0.28.0 // indirect
386384
golang.org/x/time v0.5.0 // indirect
387385
gonum.org/v1/gonum v0.15.0 // indirect
388-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 // indirect
386+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 // indirect
389387
google.golang.org/grpc v1.64.0 // indirect
390388
google.golang.org/protobuf v1.35.1 // indirect
391389
gopkg.in/inf.v0 v0.9.1 // indirect

0 commit comments

Comments
 (0)