-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
f85899f
to
9cda79b
Compare
@@ -133,7 +134,7 @@ func list(fs *Filestore, verify bool, key mh.Multihash) *ListRes { | |||
|
|||
func listAll(fs *Filestore, verify bool) (func() *ListRes, error) { | |||
q := dsq.Query{} | |||
qr, err := fs.fm.ds.Query(q) | |||
qr, err := fs.fm.ds.Query(context.Background(), q) | |||
if err != nil { | |||
return nil, err | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either the lambda returned below or ListAll() should take a context. Probably ok to leave it like this for now.
This is wrong b/c I didn't realize that go-ipfs consumes [email protected] whereas this is building on the breaking changes introduced in v1.0.0, so I need to backport this. |
We still need to have a v1 version of this for use in places like lotus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't quite ready, it should match #55
85a65a1
to
9537994
Compare
c98aa3a
to
807ffc1
Compare
Suggested version: Changes in diff --git a/go.mod b/go.mod
index 096a5f1..5ee071b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,16 +1,16 @@
module github.com/ipfs/go-filestore
-go 1.12
+go 1.16
require (
- github.com/gogo/protobuf v1.3.1
- github.com/ipfs/go-block-format v0.0.2
- github.com/ipfs/go-cid v0.0.5
- github.com/ipfs/go-datastore v0.4.4
- github.com/ipfs/go-ipfs-blockstore v1.0.0
- github.com/ipfs/go-ipfs-ds-help v1.0.0
+ github.com/gogo/protobuf v1.3.2
+ github.com/ipfs/go-block-format v0.0.3
+ github.com/ipfs/go-cid v0.0.7
+ github.com/ipfs/go-datastore v0.5.0
+ github.com/ipfs/go-ipfs-blockstore v1.1.1
+ github.com/ipfs/go-ipfs-ds-help v1.1.0
github.com/ipfs/go-ipfs-posinfo v0.0.1
- github.com/ipfs/go-log v1.0.2
- github.com/ipfs/go-merkledag v0.3.1
- github.com/multiformats/go-multihash v0.0.13
+ github.com/ipfs/go-log v1.0.5
+ github.com/ipfs/go-merkledag v0.5.1
+ github.com/multiformats/go-multihash v0.0.15
)
|
This should be a v2, as the API was changed. |
@marten-seemann we're not bumping these to v2 as right now there is a good deal of complexity around the v0 and v1 (both in use) of this repo and they need to be swappable (i.e. I need to be able to drop in v1 as a v0 replacement). This choice is independent of, but related to, the decision to not release go-datastore as a v2 despite the breaking change with contexts. So we're knowingly doing the wrong thing. |
No description provided.