Commit f3ebd688 authored by Vasily Kolobkov's avatar Vasily Kolobkov

Check Datastore.Query call for errors

License: MIT
Signed-off-by: default avatarVasily Kolobkov <polezaivsani@openmailbox.org>
parent 78f3d979
...@@ -190,6 +190,9 @@ func (pm *ProviderManager) deleteProvSet(k *cid.Cid) error { ...@@ -190,6 +190,9 @@ func (pm *ProviderManager) deleteProvSet(k *cid.Cid) error {
KeysOnly: true, KeysOnly: true,
Prefix: mkProvKey(k), Prefix: mkProvKey(k),
}) })
if err != nil {
return err
}
entries, err := res.Rest() entries, err := res.Rest()
if err != nil { if err != nil {
......
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