Skip to content

Commit bf7b542

Browse files
author
eric
committed
code optimization
1 parent d68fd24 commit bf7b542

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

graphsplit.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ var chunkCmd = &cli.Command{
3838
&cli.Int64Flag{
3939
Name: "slice-size",
4040
Value: 17179869184, // 16G
41-
Usage: fmt.Sprintf("specify chunk piece size"),
41+
Usage: "specify chunk piece size",
4242
},
4343
&cli.IntFlag{
4444
Name: "parallel",
4545
Value: 4,
46-
Usage: fmt.Sprintf("specify how many number of goroutines runs when generate file node"),
46+
Usage: "specify how many number of goroutines runs when generate file node",
4747
},
4848
&cli.StringFlag{
4949
Name: "graph-name",
5050
Required: true,
51-
Usage: fmt.Sprintf("specify graph name"),
51+
Usage: "specify graph name",
5252
},
5353
&cli.StringFlag{
5454
Name: "parent-path",
5555
Value: "",
56-
Usage: fmt.Sprintf("specify graph parent path"),
56+
Usage: "specify graph parent path",
5757
},
5858
&cli.StringFlag{
5959
Name: "car-dir",
6060
Required: true,
61-
Usage: fmt.Sprintf("specify output CAR directory"),
61+
Usage: "specify output CAR directory",
6262
},
6363
},
6464
Action: func(c *cli.Context) error {
@@ -177,17 +177,17 @@ var retrieveCmd = &cli.Command{
177177
&cli.StringFlag{
178178
Name: "car-path",
179179
Required: true,
180-
Usage: fmt.Sprintf("specify source car path, directory or file"),
180+
Usage: "specify source car path, directory or file",
181181
},
182182
&cli.StringFlag{
183183
Name: "output-dir",
184184
Required: true,
185-
Usage: fmt.Sprintf("specify output directory"),
185+
Usage: "specify output directory",
186186
},
187187
&cli.IntFlag{
188188
Name: "parallel",
189189
Value: 4,
190-
Usage: fmt.Sprintf("specify how many number of goroutines runs when generate file node"),
190+
Usage: "specify how many number of goroutines runs when generate file node",
191191
},
192192
},
193193
Action: func(c *cli.Context) error {

0 commit comments

Comments
 (0)