Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 5b013e0

Browse files
authored
Merge pull request #570 from Jorropo/split
feat: split client and server
2 parents 4fcd291 + b8fd335 commit 5b013e0

File tree

77 files changed

+1608
-1244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1608
-1244
lines changed

.gx/lastpubver

Lines changed: 0 additions & 1 deletion
This file was deleted.

benchmarks_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import (
1717
blocks "github.com/ipfs/go-block-format"
1818
protocol "github.com/libp2p/go-libp2p-core/protocol"
1919

20-
bitswap "github.com/ipfs/go-bitswap"
21-
bssession "github.com/ipfs/go-bitswap/internal/session"
20+
"github.com/ipfs/go-bitswap"
2221
bsnet "github.com/ipfs/go-bitswap/network"
2322
testinstance "github.com/ipfs/go-bitswap/testinstance"
2423
tn "github.com/ipfs/go-bitswap/testnet"
@@ -498,7 +497,7 @@ func onePeerPerBlock(b *testing.B, provs []testinstance.Instance, blks []blocks.
498497
}
499498

500499
func oneAtATime(b *testing.B, bs *bitswap.Bitswap, ks []cid.Cid) {
501-
ses := bs.NewSession(context.Background()).(*bssession.Session)
500+
ses := bs.NewSession(context.Background())
502501
for _, c := range ks {
503502
_, err := ses.GetBlock(context.Background(), c)
504503
if err != nil {

0 commit comments

Comments
 (0)