Optimisation & fixes

This commit is contained in:
2026-06-21 12:59:55 +01:00
parent ab65c2e17b
commit d5125a0d62
14 changed files with 1074 additions and 126 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package forward
import (
"fmt"
"sync"
"testing"
"time"
@@ -264,7 +265,7 @@ func (s *WatchdogTestSuite) TestConcurrentOperations() {
wg.Add(1)
go func(id int) {
defer wg.Done()
forwardID := string(rune('a' + id))
forwardID := fmt.Sprintf("worker-%d", id)
s.watchdog.RegisterWorker(forwardID, nil)
for j := 0; j < 10; j++ {
s.watchdog.Heartbeat(forwardID)