Merge pull request #3100 from ipfs/feat/disable-cat-gc

ipfs/cat: disable auto-gc check
This commit is contained in:
Jeromy Johnson 2016-08-19 15:06:12 -07:00 committed by GitHub
commit 7276fd84b0

View File

@ -5,7 +5,6 @@ import (
cmds "github.com/ipfs/go-ipfs/commands"
core "github.com/ipfs/go-ipfs/core"
"github.com/ipfs/go-ipfs/core/corerepo"
coreunix "github.com/ipfs/go-ipfs/core/coreunix"
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
@ -42,10 +41,13 @@ var CatCmd = &cmds.Command{
return
}
if err := corerepo.ConditionalGC(req.Context(), node, length); err != nil {
res.SetError(err, cmds.ErrNormal)
return
}
/*
if err := corerepo.ConditionalGC(req.Context(), node, length); err != nil {
res.SetError(err, cmds.ErrNormal)
return
}
*/
res.SetLength(length)
reader := io.MultiReader(readers...)