Skip to content

Commit

Permalink
ipfs/cat: disable auto-gc check
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <[email protected]>
  • Loading branch information
whyrusleeping committed Aug 19, 2016
1 parent 7397dd3 commit 82ffa86
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/commands/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,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...)
Expand Down

0 comments on commit 82ffa86

Please sign in to comment.