This is in a call back when might resolve after we have unpiped
On Apr 17, 2014 10:57 PM, "Nolan Lawson" <notifications@github.com> wrote:

> In lib/adapters/leveldb.js:
>
> > @@ -740,7 +740,7 @@ function LevelPouch(opts, callback) {
> >        }
> >
> >        stores.docStore.get(data.value._id, function (err, metadata) {
> > -        if (utils.isLocalId(metadata.id)) {
> > +        if (opts.cancelled || utils.isLocalId(metadata.id)) {
>
> If it was canceled, can't we just outright unpipe the stream as in #1958<https://github.com/pouchdb/pouchdb/pull/1958>,
> rather than read until the end?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pouchdb/pouchdb/pull/1960/files#r11762641>
> .
>