Skip to content

Commit

Permalink
ledger range export
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed May 27, 2024
1 parent f8de741 commit e682c75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/get_ledger_range_from_times.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ var getLedgerRangeFromTimesCmd = &cobra.Command{
range covers time before the network started, the ledger range will start with the genesis ledger.`,
Run: func(cmd *cobra.Command, args []string) {
cmdLogger.SetLevel(logrus.InfoLevel)
commonArgs := utils.MustCommonFlags(cmd.Flags(), cmdLogger)
// _, path, _ := utils.MustArchiveFlags(cmd.Flags(), cmdLogger)
cloudStorageBucket, cloudCredentials, cloudProvider := utils.MustCloudStorageFlags(cmd.Flags(), cmdLogger)

startString, err := cmd.Flags().GetString("start-time")
Expand Down Expand Up @@ -85,7 +83,7 @@ var getLedgerRangeFromTimesCmd = &cobra.Command{

numFailures := 0
totalNumBytes := 0
numBytes, err := exportEntry(marshalled, outFile, commonArgs.Extra)
numBytes, err := exportEntry(marshalled, outFile, nil)
if err != nil {
cmdLogger.LogError(fmt.Errorf("could not export ledger ranges: %v", err))
numFailures += 1
Expand Down

0 comments on commit e682c75

Please sign in to comment.