Set KeysOnly to true of Datastore.Query()

License: MIT
Signed-off-by: Jason Chang <ridewindx@163.com>
This commit is contained in:
RideWindX 2018-03-08 21:29:49 +08:00 committed by GitHub
parent 31c5e05373
commit 47e3454f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ func (pm *ProviderManager) deleteProvSet(k *cid.Cid) error {
func (pm *ProviderManager) getProvKeys() (func() (*cid.Cid, bool), error) {
res, err := pm.dstore.Query(dsq.Query{
KeysOnly: false,
KeysOnly: true,
Prefix: providersKeyPrefix,
})
if err != nil {