Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Apr 20, 2021
1 parent d68fd24 commit bf7b542
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions graphsplit.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@ var chunkCmd = &cli.Command{
&cli.Int64Flag{
Name: "slice-size",
Value: 17179869184, // 16G
Usage: fmt.Sprintf("specify chunk piece size"),
Usage: "specify chunk piece size",
},
&cli.IntFlag{
Name: "parallel",
Value: 4,
Usage: fmt.Sprintf("specify how many number of goroutines runs when generate file node"),
Usage: "specify how many number of goroutines runs when generate file node",
},
&cli.StringFlag{
Name: "graph-name",
Required: true,
Usage: fmt.Sprintf("specify graph name"),
Usage: "specify graph name",
},
&cli.StringFlag{
Name: "parent-path",
Value: "",
Usage: fmt.Sprintf("specify graph parent path"),
Usage: "specify graph parent path",
},
&cli.StringFlag{
Name: "car-dir",
Required: true,
Usage: fmt.Sprintf("specify output CAR directory"),
Usage: "specify output CAR directory",
},
},
Action: func(c *cli.Context) error {
Expand Down Expand Up @@ -177,17 +177,17 @@ var retrieveCmd = &cli.Command{
&cli.StringFlag{
Name: "car-path",
Required: true,
Usage: fmt.Sprintf("specify source car path, directory or file"),
Usage: "specify source car path, directory or file",
},
&cli.StringFlag{
Name: "output-dir",
Required: true,
Usage: fmt.Sprintf("specify output directory"),
Usage: "specify output directory",
},
&cli.IntFlag{
Name: "parallel",
Value: 4,
Usage: fmt.Sprintf("specify how many number of goroutines runs when generate file node"),
Usage: "specify how many number of goroutines runs when generate file node",
},
},
Action: func(c *cli.Context) error {
Expand Down

0 comments on commit bf7b542

Please sign in to comment.