refactor: optimize row handling in mssql extractor and transformer
This commit is contained in:
@@ -68,7 +68,7 @@ func Consume(
|
||||
wgActivePartitions.Done()
|
||||
|
||||
if rowsReadResult > 0 {
|
||||
atomic.AddInt64(rowsRead, int64(rowsReadResult))
|
||||
atomic.AddInt64(rowsRead, rowsReadResult)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
@@ -86,8 +86,6 @@ func Consume(
|
||||
case chErrorsOut <- custom_errors.JobError{ShouldCancelJob: false, Msg: err.Error(), Prev: err}:
|
||||
}
|
||||
}
|
||||
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user