Skip to content

Commit

Permalink
change struct key
Browse files Browse the repository at this point in the history
  • Loading branch information
lukanus committed Mar 21, 2023
1 parent a8bd792 commit 20e8aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/evidence/badger/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (s *Datastore) getlatestDelivered(ctx context.Context, start uint64, limit
el = []structs.BidTraceExtended{}

for {
payload, err := s.DB.Get(ctx, DeliveredKey(structs.Slot(start)))
payload, err := s.DB.Get(ctx, DeliveredKey(structs.Slot(initialSlot)))
if err != nil {
if errors.Is(err, ds.ErrNotFound) {
initialSlot--
Expand Down

0 comments on commit 20e8aa3

Please sign in to comment.