rename GarbageCollectAsync method
corerepo package name provides sufficient context (even if renamed by caller)
Brian Tiger Chow committed
Jan 23, 2015 at 22:09 UTC
d738a024287b6760cfa84d689555742c86cf84f7
2 files changed
+2
-2
core/commands/repo.go
+1
-1
@@ -43,7 +43,7 @@ order to reclaim hard disk space.
43
return
44
}
45
46
- gcOutChan, err := corerepo.GarbageCollectBlockstore(n, req.Context().Context)
46
+ gcOutChan, err := corerepo.GarbageCollectAsync(n, req.Context().Context)
47
if err != nil {
48
res.SetError(err, cmds.ErrNormal)
49
return
core/corerepo/gc.go
+1
-1
@@ -14,7 +14,7 @@ type KeyRemoved struct {
14
Key u.Key
15
}
16
17
-func GarbageCollectBlockstore(n *core.IpfsNode, ctx context.Context) (<-chan *KeyRemoved, error) {
17
+func GarbageCollectAsync(n *core.IpfsNode, ctx context.Context) (<-chan *KeyRemoved, error) {
18
19
keychan, err := n.Blockstore.AllKeysChan(ctx)
20
if err != nil {