Skip to content

Commit

Permalink
Merge pull request ipfs#123 from ridewindx/master
Browse files Browse the repository at this point in the history
Set KeysOnly field of query condition to true for Datastore.Query(), then it will query only keys.
  • Loading branch information
Kubuxu authored Mar 14, 2018
2 parents 31c5e05 + 47e3454 commit 000c4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 000c4a3

Please sign in to comment.