From 115bee5d939e1ed3783eec7069497e4183041ffb Mon Sep 17 00:00:00 2001 From: Jeromy Date: Fri, 19 Aug 2016 13:29:15 -0700 Subject: [PATCH] ipfs/cat: disable auto-gc check License: MIT Signed-off-by: Jeromy --- core/commands/cat.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/commands/cat.go b/core/commands/cat.go index a42bc2406..6301d3861 100644 --- a/core/commands/cat.go +++ b/core/commands/cat.go @@ -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...)