Skip to content

Commit

Permalink
pass in range to seek
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jul 9, 2016
1 parent f8df442 commit 834be56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cursor.js
Expand Up @@ -74,7 +74,9 @@ Cursor.prototype._seek = function (offset, cb) {
return cb(null)
}

this.archive.content.seek(offset, function (err, block, rel) {
var opts = {start: this.entry.content.blockOffset, end: this._endBlock}

this.archive.content.seek(offset, opts, function (err, block, rel) {
if (err) return cb(err)

self._block = block
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"brfs": "^1.4.3",
"bulk-write-stream": "^1.1.1",
"from2": "^2.1.1",
"hypercore": "^4.3.1",
"hypercore": "^4.7.0",
"inherits": "^2.0.1",
"protocol-buffers": "^3.1.6",
"pump": "^1.0.1",
Expand Down

0 comments on commit 834be56

Please sign in to comment.