Skip to content

Commit

Permalink
fix(dataflow): handle nil CurrentBatch in SetBatchLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Dec 1, 2024
1 parent 578efa8 commit 9fdb5ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dbio/iop/dataflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ func (df *Dataflow) SetBatchLimit(limit int64) {
defer df.mux.Unlock()
for _, ds := range df.Streams {
ds.Sp.Config.BatchLimit = limit
ds.CurrentBatch.Limit = limit
if ds.CurrentBatch != nil {
ds.CurrentBatch.Limit = limit
}
}
}

Expand Down

0 comments on commit 9fdb5ff

Please sign in to comment.