Skip to content

Commit

Permalink
Remove unused exch field of Peer struct
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Aug 19, 2024
1 parent e19cd2b commit ecd5082
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/ipfs/boxo/bitswap"
"github.com/ipfs/boxo/bitswap/network"
"github.com/ipfs/boxo/blockservice"
exchange "github.com/ipfs/boxo/exchange"
"github.com/ipfs/boxo/ipns"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
Expand Down Expand Up @@ -74,7 +73,6 @@ type Peer struct {
p2pRPC *grpc.Server // rpc server over the P2P network

// peer DAG service
exch exchange.Interface
bserv blockservice.BlockService

ctx context.Context
Expand Down Expand Up @@ -516,7 +514,6 @@ func (p *Peer) setupBlockService() {
bswapnet := network.NewFromIpfsHost(p.host, p.dht)
bswap := bitswap.New(p.ctx, bswapnet, p.blockstore)
p.bserv = blockservice.New(p.blockstore, bswap)
p.exch = bswap
}

func stopGRPCServer(ctx context.Context, server *grpc.Server) {
Expand Down

0 comments on commit ecd5082

Please sign in to comment.