Compare commits

...

2 Commits

Author SHA1 Message Date
jonastheis
28fb6126ed chore: auto version bump [bot] 2025-05-20 13:19:30 +00:00
jonastheis
5f29e22815 fix nil pointer if there's no pending batches 2025-05-20 15:16:57 +02:00
2 changed files with 6 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.5.12"
var tag = "v4.5.13"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -327,6 +327,11 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
return
}
// nothing to do if we don't have any pending batches
if len(dbBatches) == 0 {
return
}
// if backlog outgrow max size, forcesubmit enough oldest batches
backlogCount, err := r.batchOrm.GetFailedAndPendingBatchesCount(r.ctx)
if err != nil {