mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-12 20:04:13 +00:00
Remove dead code
This commit is contained in:
parent
3c4d4dc29f
commit
6fbe37eb55
@ -109,24 +109,6 @@ proc new*(
|
||||
maxRetries = DefaultMaxRetries,
|
||||
peersPerRequest = DefaultMaxPeersPerRequest): T =
|
||||
|
||||
proc sendWantList(
|
||||
id: PeerID,
|
||||
cids: seq[Cid],
|
||||
priority: int32 = 0,
|
||||
cancel: bool = false,
|
||||
wantType: WantType = WantType.wantHave,
|
||||
full: bool = false,
|
||||
sendDontHave: bool = false) {.gcsafe.} =
|
||||
network.broadcastWantList(
|
||||
id, cids, priority, cancel,
|
||||
wantType, full, sendDontHave)
|
||||
|
||||
proc sendBlocks(id: PeerID, blocks: seq[bt.Block]) {.gcsafe.} =
|
||||
network.broadcastBlocks(id, blocks)
|
||||
|
||||
proc sendPresence(id: PeerID, presence: seq[BlockPresence]) {.gcsafe.} =
|
||||
network.broadcastBlockPresence(id, presence)
|
||||
|
||||
let engine = BitswapEngine.new(
|
||||
localStore = localStore,
|
||||
peersPerRequest = peersPerRequest,
|
||||
|
Loading…
x
Reference in New Issue
Block a user