Commit d0d53e21 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #3407 from ipfs/kevina/dskey-minalloc

ds-help: avoid unnecessary allocs when posssible and make use of RawKey
parents 1c96aab3 02ca16d3
......@@ -196,7 +196,7 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)
}
// need to convert to key.Key using key.KeyFromDsKey.
c, err := dshelp.DsKeyStringToCid(e.Key)
c, err := dshelp.DsKeyToCid(ds.RawKey(e.Key))
if err != nil {
log.Warningf("error parsing key from DsKey: ", err)
return nil, true
......
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