File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,16 @@ func (fs *Datastore) Put(key datastore.Key, value []byte) error {
388
388
return err
389
389
}
390
390
391
+ func (fs * Datastore ) Sync (prefix datastore.Key ) error {
392
+ fs .shutdownLock .RLock ()
393
+ defer fs .shutdownLock .RUnlock ()
394
+ if fs .shutdown {
395
+ return ErrClosed
396
+ }
397
+
398
+ return nil
399
+ }
400
+
391
401
func (fs * Datastore ) doOp (oper * op ) error {
392
402
switch oper .typ {
393
403
case opPut :
Original file line number Diff line number Diff line change 1
1
module github.com/ipfs/go-ds-flatfs
2
2
3
3
require (
4
- github.com/ipfs/go-datastore v0.1.1
4
+ github.com/ipfs/go-datastore v0.2.1-0.20191203002116-8ddf6ada75cf
5
5
github.com/ipfs/go-log v0.0.1
6
6
github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8
7
7
)
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ github.com/ipfs/go-datastore v0.1.0 h1:TOxI04l8CmO4zGtesENhzm4PwkFwJXY3rKiYaaMf9
10
10
github.com/ipfs/go-datastore v0.1.0 /go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE =
11
11
github.com/ipfs/go-datastore v0.1.1 h1:F4k0TkTAZGLFzBOrVKDAvch6JZtuN4NHkfdcEZL50aI =
12
12
github.com/ipfs/go-datastore v0.1.1 /go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw =
13
+ github.com/ipfs/go-datastore v0.1.2-0.20191127175949-52c36621e1d3 /go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw =
14
+ github.com/ipfs/go-datastore v0.2.1-0.20191203002116-8ddf6ada75cf /go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw =
13
15
github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8 /go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw =
14
16
github.com/ipfs/go-log v0.0.1 h1:9XTUN/rW64BCG1YhPK9Hoy3q8nr4gOmHHBpgFdfw6Lc =
15
17
github.com/ipfs/go-log v0.0.1 /go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM =
You can’t perform that action at this time.
0 commit comments