Skip to content

Commit

Permalink
#5156: do not include range prep time in 'Reingestion done' logged du…
Browse files Browse the repository at this point in the history
…ration (#5159)
  • Loading branch information
sreuland authored Jan 12, 2024
1 parent 428a0be commit 15324b7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ func (h reingestHistoryRangeState) run(s *system) (transition, error) {
h.fromLedger = 2
}

startTime := time.Now()
var startTime time.Time

if h.force {
if t, err := h.prepareRange(s); err != nil {
return t, err
}

startTime = time.Now()
if err := s.historyQ.Begin(s.ctx); err != nil {
return stop(), errors.Wrap(err, "Error starting a transaction")
}
Expand Down Expand Up @@ -167,6 +168,7 @@ func (h reingestHistoryRangeState) run(s *system) (transition, error) {
return t, err
}

startTime = time.Now()
if err := s.historyQ.Begin(s.ctx); err != nil {
return stop(), errors.Wrap(err, "Error starting a transaction")
}
Expand Down

0 comments on commit 15324b7

Please sign in to comment.