Skip to content

Commit

Permalink
Merge pull request ipfs/go-bitswap#570 from Jorropo/split
Browse files Browse the repository at this point in the history
feat: split client and server

This commit was moved from ipfs/go-bitswap@5b013e0
  • Loading branch information
guseggert authored Aug 13, 2022
2 parents 236ab37 + 10c47cb commit ec22e05
Show file tree
Hide file tree
Showing 75 changed files with 1,607 additions and 1,242 deletions.
5 changes: 2 additions & 3 deletions bitswap/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import (
blocks "github.com/ipfs/go-block-format"
protocol "github.com/libp2p/go-libp2p-core/protocol"

bitswap "github.com/ipfs/go-bitswap"
bssession "github.com/ipfs/go-bitswap/internal/session"
"github.com/ipfs/go-bitswap"
bsnet "github.com/ipfs/go-bitswap/network"
testinstance "github.com/ipfs/go-bitswap/testinstance"
tn "github.com/ipfs/go-bitswap/testnet"
Expand Down Expand Up @@ -498,7 +497,7 @@ func onePeerPerBlock(b *testing.B, provs []testinstance.Instance, blks []blocks.
}

func oneAtATime(b *testing.B, bs *bitswap.Bitswap, ks []cid.Cid) {
ses := bs.NewSession(context.Background()).(*bssession.Session)
ses := bs.NewSession(context.Background())
for _, c := range ks {
_, err := ses.GetBlock(context.Background(), c)
if err != nil {
Expand Down
Loading

0 comments on commit ec22e05

Please sign in to comment.