vlog2car: add max-size flag usage, fix lint
This commit is contained in:
parent
ebeb16eda5
commit
2f7062d642
@ -34,13 +34,17 @@ var datastoreVlog2CarCmd = &cli.Command{
|
|||||||
Usage: "datastore prefix",
|
Usage: "datastore prefix",
|
||||||
Value: "/blocks/",
|
Value: "/blocks/",
|
||||||
},
|
},
|
||||||
&cli.Uint64Flag{Name: "max-size", Value: 32000},
|
&cli.Uint64Flag{
|
||||||
|
Name: "max-size",
|
||||||
|
Value: 32000,
|
||||||
|
Usage: "max single car size in MiB",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
ArgsUsage: "[vlog...]",
|
ArgsUsage: "[vlog...]",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
ctx := cctx.Context
|
ctx := cctx.Context
|
||||||
|
|
||||||
maxSz := uint64(cctx.Uint64("max-size") << 20)
|
maxSz := cctx.Uint64("max-size") << 20
|
||||||
|
|
||||||
carb := &rawCarb{
|
carb := &rawCarb{
|
||||||
max: maxSz,
|
max: maxSz,
|
||||||
|
Loading…
Reference in New Issue
Block a user