Skip to content

Commit 47f856e

Browse files
committed
review by @HDegroote
1 parent 464d3b7 commit 47f856e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/replicator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const MAX_REMOTE_SEGMENTS = 2048
4444

4545
const MAX_RANGES = 64
4646

47-
const RETRY = 1
47+
const NOT_AVAILABLE = 1
4848
const INVALID_REQUEST = 2
4949
const MAX_INVALID_REQUESTS = 64
5050
const MAX_BACKOFFS = MAX_INVALID_REQUESTS / 2
@@ -834,7 +834,7 @@ class Peer {
834834
return
835835
}
836836

837-
this.wireNoData.send({ request: req.msg.id, reason: RETRY })
837+
this.wireNoData.send({ request: req.msg.id, reason: NOT_AVAILABLE })
838838
return
839839
}
840840

0 commit comments

Comments
 (0)