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

Commit

Permalink
Merge pull request #570 from Jorropo/split
Browse files Browse the repository at this point in the history
feat: split client and server
  • Loading branch information
guseggert committed Aug 13, 2022
2 parents 4fcd291 + b8fd335 commit 5b013e0
Show file tree
Hide file tree
Showing 77 changed files with 1,608 additions and 1,244 deletions.
1 change: 0 additions & 1 deletion .gx/lastpubver

This file was deleted.

5 changes: 2 additions & 3 deletions 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 5b013e0

Please sign in to comment.