Add KeepAlive duration to IaR struct and update related functionality; remove obsolete test file
All checks were successful
Golan Testing / testing (1.25.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-09-09 21:40:33 -04:00
parent 12ef7dbd73
commit cd17d3ae7f
5 changed files with 188 additions and 187 deletions

View File

@@ -70,14 +70,14 @@ func main() {
// Start directory watcher in a goroutine
go watcher.WatchDirectory(ctx, config.Directory, eb, logger)
// Start keep-alive sender in a goroutine
go iar.ServeKeepAlive(ctx, 15*time.Minute)
err = iar.KeepAlive()
if err != nil {
slog.Error("Initial keep-alive failed", "error", err)
}
// Start keep-alive sender in a goroutine
go iar.ServeKeepAlive(ctx)
// Handle OS signals for shutdown
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)