summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-22 19:57:49 -0500
committerJeff Carr <[email protected]>2024-10-22 19:57:49 -0500
commita3ea303ab86e5db6510a00e373b6e7a6620d426a (patch)
treef0781a55a2dc06b9fb72566aba7d133aff330d62 /structs.go
parent5b99a88e0607426e3651ef1526809c84ede8301a (diff)
global hypervisor poll delay
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 5e6201e..b7ce4c4 100644
--- a/structs.go
+++ b/structs.go
@@ -24,6 +24,7 @@ type virtigoT struct {
names []string
hypers []*HyperT
droplets []*DropletT
+ delay time.Duration // how often to poll the hypervisors
killcount int
unstable time.Time // the last time the cluster was incorrect
}
@@ -31,8 +32,7 @@ type virtigoT struct {
// the stuff that is needed for a hypervisor
type HyperT struct {
pb *pb.Hypervisor // the Hypervisor protobuf
- Delay time.Duration // how often to poll the hypervisor
- Dog *time.Ticker // the watchdog timer itself
+ dog *time.Ticker // the watchdog timer itself
lastpoll time.Time // the last time the hypervisor polled
killcount int
}