Skip to content

Commit 7276fd8

Browse files
Merge pull request #3100 from ipfs/feat/disable-cat-gc
ipfs/cat: disable auto-gc check
2 parents 7397dd3 + 115bee5 commit 7276fd8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

core/commands/cat.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55

66
cmds "github.com/ipfs/go-ipfs/commands"
77
core "github.com/ipfs/go-ipfs/core"
8-
"github.com/ipfs/go-ipfs/core/corerepo"
98
coreunix "github.com/ipfs/go-ipfs/core/coreunix"
109

1110
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
@@ -42,10 +41,13 @@ var CatCmd = &cmds.Command{
4241
return
4342
}
4443

45-
if err := corerepo.ConditionalGC(req.Context(), node, length); err != nil {
46-
res.SetError(err, cmds.ErrNormal)
47-
return
48-
}
44+
/*
45+
if err := corerepo.ConditionalGC(req.Context(), node, length); err != nil {
46+
res.SetError(err, cmds.ErrNormal)
47+
return
48+
}
49+
*/
50+
4951
res.SetLength(length)
5052

5153
reader := io.MultiReader(readers...)

0 commit comments

Comments
 (0)