File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : build
2
2
build :
3
- go build -ldflags " -s -w" -o graphsplit graphsplit.go utils.go retrieve.go
3
+ go build -ldflags " -s -w" -o graphsplit graphsplit.go utils.go retrieve.go
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ var chunkCmd = &cli.Command{
74
74
if sliceSize == 0 {
75
75
return xerrors .Errorf ("Unexpected! Slice size has been set as 0" )
76
76
}
77
+ if parallel <= 0 {
78
+ return xerrors .Errorf ("Unexpected! Parallel has to be greater than 0" )
79
+ }
77
80
78
81
args := c .Args ().Slice ()
79
82
sliceTotal := GetGraphCount (args , sliceSize )
@@ -191,6 +194,9 @@ var retrieveCmd = &cli.Command{
191
194
parallel := c .Int ("parallel" )
192
195
outputDir := c .String ("output-dir" )
193
196
carPath := c .String ("car-path" )
197
+ if parallel <= 0 {
198
+ return xerrors .Errorf ("Unexpected! Parallel has to be greater than 0" )
199
+ }
194
200
195
201
CarTo (carPath , outputDir , parallel )
196
202
Merge (outputDir , parallel )
You can’t perform that action at this time.
0 commit comments