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
All checks were successful
Golan Testing / testing (1.25.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
6
main.go
6
main.go
@@ -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)
|
||||
|
Reference in New Issue
Block a user