Skip to content

Commit

Permalink
Move start time
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Mar 27, 2024
1 parent 564480f commit 801b72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/soroban-rpc/internal/ingest/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,13 @@ func (s *Service) fillEntriesFromCheckpoint(ctx context.Context, archive history
}

func (s *Service) ingest(ctx context.Context, sequence uint32) error {
startTime := time.Now()
s.logger.Infof("Ingesting ledger %d", sequence)
ledgerCloseMeta, err := s.ledgerBackend.GetLedger(ctx, sequence)
if err != nil {
return err
}

startTime := time.Now()
reader, err := ingest.NewLedgerChangeReaderFromLedgerCloseMeta(s.networkPassPhrase, ledgerCloseMeta)
if err != nil {
return err
Expand Down

0 comments on commit 801b72e

Please sign in to comment.