Skip to content

Commit

Permalink
Merge pull request #98 from iotaledger/fix/enqueued-requests-loss
Browse files Browse the repository at this point in the history
Fix loss of enqueued requests
  • Loading branch information
muXxer authored Oct 23, 2023
2 parents 935b512 + b1caad0 commit fb93426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
Name = "inx-faucet"

// Version of the app.
Version = "2.0.0-alpha.3"
Version = "2.0.0-alpha.4"
)

func App() *app.App {
Expand Down
3 changes: 3 additions & 0 deletions pkg/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ func (f *Faucet) collectRequestsAndSendFaucetBlock(ctx context.Context) error {
}
f.logSoftError(err)
}
// readd the all collected requests back to the queue
f.readdRequestsWithoutLocking(batchedRequests)

return nil
}
Expand All @@ -797,6 +799,7 @@ func (f *Faucet) collectRequestsAndSendFaucetBlock(ctx context.Context) error {
// => stop the faucet
return err
}
// readd the non-processed requests back to the queue
f.readdRequestsWithoutLocking(processableRequests)
f.logSoftError(err)
}
Expand Down

0 comments on commit fb93426

Please sign in to comment.