Skip to content

Commit 37b3830

Browse files
authored
do not snap oob gets (#483)
1 parent 2b8d2d1 commit 37b3830

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ module.exports = class Hypercore extends EventEmitter {
927927
const activeRequests = (opts && opts.activeRequests) || this.activeRequests
928928

929929
const req = this.replicator.addBlock(activeRequests, index)
930+
req.snapshot = index < this.length
930931

931932
const timeout = opts && opts.timeout !== undefined ? opts.timeout : this.timeout
932933
if (timeout) req.context.setTimeout(req, timeout)

0 commit comments

Comments
 (0)