Commit 1d83343d authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

Merge pull request #4833 from ipfs/misc/remove-dead-code

misc: Remove some dead code
parents b00f22ec 689398fb
......@@ -66,8 +66,8 @@ var rebroadcastDelay = delay.Fixed(time.Minute)
// BitSwapNetwork. This function registers the returned instance as the network
// delegate.
// Runs until context is cancelled.
func New(parent context.Context, p peer.ID, network bsnet.BitSwapNetwork,
bstore blockstore.Blockstore, nice bool) exchange.Interface {
func New(parent context.Context, network bsnet.BitSwapNetwork,
bstore blockstore.Blockstore) exchange.Interface {
// important to use provided parent context (since it may include important
// loggable data). It's probably not a good idea to allow bitswap to be
......
......@@ -99,9 +99,7 @@ func MkSession(ctx context.Context, net tn.Network, p testutil.Identity) Instanc
panic(err.Error()) // FIXME perhaps change signature and return error.
}
const alwaysSendToPeer = true
bs := New(ctx, p.ID(), adapter, bstore, alwaysSendToPeer).(*Bitswap)
bs := New(ctx, adapter, bstore).(*Bitswap)
return Instance{
Peer: p.ID(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment