Skip to content

Commit

Permalink
Remove unnecessary param
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrador committed Nov 28, 2024
1 parent e65e7cc commit bec05e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/sonictool/app/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func exportEvents(ctx *cli.Context) error {
}

log.Info("Exporting events to file", "file", fn)
err = chain.ExportEvents(gdbParams, writer, dataDir, from, to)
err = chain.ExportEvents(gdbParams, writer, from, to)
if err != nil {
return fmt.Errorf("export error: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/sonictool/chain/export_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var (
// always print out progress. This avoids the user wondering what's going on.
const statsReportLimit = 8 * time.Second

func ExportEvents(gdbParams db.GossipDbParameters, w io.Writer, dataDir string, from, to idx.Epoch) (err error) {
chaindataDir := filepath.Join(dataDir, "chaindata")
func ExportEvents(gdbParams db.GossipDbParameters, w io.Writer, from, to idx.Epoch) (err error) {
chaindataDir := filepath.Join(gdbParams.DataDir, "chaindata")
dbs, err := db.MakeDbProducer(chaindataDir, cachescale.Identity)
if err != nil {
return err
Expand Down

0 comments on commit bec05e1

Please sign in to comment.