@cryptotaxi247 / kubo / commits / 115bee5d9

ipfs/cat: disable auto-gc check

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Aug 19, 2016 at 13:29 UTC 115bee5d939e1ed3783eec7069497e4183041ffb
1 file changed +7 -5
core/commands/cat.go
+7 -5
@@ -5,7 +5,6 @@ import (
5
6 cmds "github.com/ipfs/go-ipfs/commands"
7 core "github.com/ipfs/go-ipfs/core"
8 - "github.com/ipfs/go-ipfs/core/corerepo"
8 coreunix "github.com/ipfs/go-ipfs/core/coreunix"
9
10 context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
@@ -42,10 +41,13 @@ var CatCmd = &cmds.Command{
41 return
42 }
43
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 +
51 res.SetLength(length)
52
53 reader := io.MultiReader(readers...)