1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00
forgejo-runner/internal/pkg
Earl Warren b842a66be2
fix: ReportLog retry if noMore && more rows are to be sent
r.logOffset = ack
ack < r.logOffset+len(rows)

can be simplified as

len(rows) > 0

which is only false if there were no rows to send. It follows
that

if noMore && ack < r.logOffset+len(rows) {

is can be simplified as

if noMore {

is always true if rows were sent.

The intent was apparently to return on error and retry if only
part of the rows were sent but not all of them. To achieve that
the expression is replaced with:

if noMore && len(r.logRows) > 0 {
2025-07-07 17:28:10 +02:00
..
client assorted set of fixes and features for rebranding (#652) 2025-07-06 06:59:00 +00:00
config fix(docs): better example for the default config file (#630) 2025-07-01 17:51:05 +00:00
envcheck fix: [container].docker_host = "" is now "automount" 2024-11-27 01:36:18 +00:00
labels Upgrade the default container to node:20 2024-06-07 11:41:14 +02:00
report fix: ReportLog retry if noMore && more rows are to be sent 2025-07-07 17:28:10 +02:00
testutils chore(tests): MockVariable helper 2025-07-06 08:59:18 +02:00
ver chore: s|gitea.com/gitea/act_runner|runner.forgejo.org| 2025-07-03 19:07:02 +02:00