orchard controller run: introduce --experimental-ping-interval (#316)

* orchard controller run: introduce --experimental-ping-interval

* Ensure that --experimental-ping-interval is always larger than 5s
This commit is contained in:
Nikolay Edigaryev
2025-05-15 21:14:17 +04:00
committed by GitHub
parent d52aa91927
commit a37a8914cd
6 changed files with 25 additions and 3 deletions
+2
View File
@@ -60,6 +60,7 @@ type Controller struct {
workerOfflineTimeout time.Duration
maxWorkersPerLicense uint
experimentalRPCV2 bool
pingInterval time.Duration
sshListenAddr string
sshSigner ssh.Signer
@@ -75,6 +76,7 @@ func New(opts ...Option) (*Controller, error) {
ipRendezvous: rendezvous.New[rendezvous.ResultWithErrorMessage[string]](),
workerOfflineTimeout: 3 * time.Minute,
maxWorkersPerLicense: maxWorkersPerDefaultLicense,
pingInterval: 30 * time.Second,
}
// Apply options