Skip to content

Commit

Permalink
rework: ledger-cursor-name made more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-burghardt committed May 27, 2024
1 parent c81a985 commit 72a0dbb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ func (c *ingestCmd) Command() *cobra.Command {
Required: true,
},
{
Name: "ledger-cursor-name",
Usage: "Name of last synced ledger cursor. Attention: there should never be more than one container running with a same cursor name.",
OptType: types.String,
ConfigKey: &cfg.LedgerCursorName,
FlagDefault: "last_synced_ledger",
Required: false,
Name: "ledger-cursor-name",
Usage: "Name of last synced ledger cursor, used to keep track of the last ledger ingested by the service. When starting up, ingestion will resume from the ledger number stored in this record. It should be an unique name per container as different containers would overwrite the cursor value of its peers when using the name cursor name.",
OptType: types.String,
ConfigKey: &cfg.LedgerCursorName,
Required: true,
},
{
Name: "start",
Expand Down

0 comments on commit 72a0dbb

Please sign in to comment.