From 7a69c7ec07dbbf7cd6b2ba8b882194ede3417b61 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Wed, 7 May 2025 10:13:17 +0800 Subject: [PATCH] chore: add log --- cmd/graphsplit/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/graphsplit/main.go b/cmd/graphsplit/main.go index 86cec7a..250a070 100644 --- a/cmd/graphsplit/main.go +++ b/cmd/graphsplit/main.go @@ -132,9 +132,13 @@ var chunkCmd = &cli.Command{ cb = graphsplit.ErrCallback() } - if !c.Bool("loop") { + loop := c.Bool("loop") + fmt.Println("loop: ", loop) + if !loop { + fmt.Println("chunking once...") return graphsplit.Chunk(ctx, int64(sliceSize), parentPath, targetPath, carDir, graphName, int(parallel), cb) } + fmt.Println("loop chunking...") for { err = graphsplit.Chunk(ctx, int64(sliceSize), parentPath, targetPath, carDir, graphName, int(parallel), cb) if err != nil {