mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 04:43:12 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user