Unverified Commit b336dbca authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #60 from ipfs/feat/ds-update

Update Datastore Interface
parents ed92a705 20a4649a
......@@ -388,6 +388,16 @@ func (fs *Datastore) Put(key datastore.Key, value []byte) error {
return err
}
func (fs *Datastore) Sync(prefix datastore.Key) error {
fs.shutdownLock.RLock()
defer fs.shutdownLock.RUnlock()
if fs.shutdown {
return ErrClosed
}
return nil
}
func (fs *Datastore) doOp(oper *op) error {
switch oper.typ {
case opPut:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment