Skip to content

Commit c94952f

Browse files
committed
Trace _requestRangBlock and _send start
1 parent 64116ee commit c94952f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/replicator.js

+2
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ class Peer {
10341034
}
10351035

10361036
_requestRangeBlock (index, length) {
1037+
this.tracer.trace('_requestRangeBlock')
10371038
if (this.core.bitfield.get(index) === true || !this._hasTreeParent(index)) return false
10381039

10391040
const b = this.replicator._blocks.add(index, PRIORITY.NORMAL)
@@ -1179,6 +1180,7 @@ class Peer {
11791180
}
11801181

11811182
async _send (req) {
1183+
this.tracer.trace('_send-start')
11821184
const fork = this.core.tree.fork
11831185

11841186
this.inflight++

0 commit comments

Comments
 (0)