Skip to content

Commit

Permalink
cli: rename erigon seg index to erigon seg accessor (#12816)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Nov 22, 2024
1 parent a7c728f commit 7fba1b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions turbo/app/snapshots_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ func joinFlags(lists ...[]cli.Flag) (res []cli.Flag) {
}

var snapshotCommand = cli.Command{
Name: "snapshots",
Aliases: []string{"seg"},
Usage: `Managing snapshots (historical data partitions)`,
Name: "seg",
Aliases: []string{"snapshots"},
Usage: `Managing historical data segments (partitions)`,
Before: func(cliCtx *cli.Context) error {
go mem.LogMemStats(cliCtx.Context, log.New())
go disk.UpdateDiskStats(cliCtx.Context, log.New())
Expand All @@ -112,7 +112,8 @@ var snapshotCommand = cli.Command{
}),
},
{
Name: "index",
Name: "accessor",
Aliases: []string{"index"},
Action: func(c *cli.Context) error {
dirs, l, err := datadir.New(c.String(utils.DataDirFlag.Name)).MustFlock()
if err != nil {
Expand Down

0 comments on commit 7fba1b2

Please sign in to comment.