This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 1df10e192e fix(plc4go): set last loop time to avoid wait cycle cpu burn
1df10e192e is described below
commit 1df10e192e41894377c81fe15d689c9ba0b55603
Author: Sebastian Rühl <[email protected]>
AuthorDate: Wed Nov 12 18:28:50 2025 +0100
fix(plc4go): set last loop time to avoid wait cycle cpu burn
---
plc4go/spi/default/DefaultCodec.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/plc4go/spi/default/DefaultCodec.go
b/plc4go/spi/default/DefaultCodec.go
index 9ea2df7c1d..5add3719cc 100644
--- a/plc4go/spi/default/DefaultCodec.go
+++ b/plc4go/spi/default/DefaultCodec.go
@@ -401,6 +401,7 @@ mainLoop:
workerLog.Debug().Stringer("processingTime",
processingTime).Msg("no need to sleep") // we use stringer instead of Dur to
have it a bit more readable
}
workerLog.Trace().Msg("receive mainloop cycle")
+ lastLoopTime = time.Now()
// Guard against empty expectations
m.expectationsChangeMutex.RLock()