mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 22:32:13 +00:00
Set KeysOnly to true of Datastore.Query()
License: MIT Signed-off-by: Jason Chang <ridewindx@163.com>
This commit is contained in:
parent
31c5e05373
commit
47e3454f42
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user