summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-26 21:05:16 -0500
committerJeff Carr <[email protected]>2024-10-26 21:05:16 -0500
commita314af7f8bfdbbd4234f2d0800a5b95ebfd207fa (patch)
treedc9c294148086b47b2b4a43513a7138d21e90950 /main.go
parent65b61769117db371c4ec8fc0094d67b8c1075c1b (diff)
cleanup
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index ae7069c..9bba77b 100644
--- a/main.go
+++ b/main.go
@@ -27,12 +27,11 @@ import (
)
var Version string
+var hv *hypervisor.Hypervisor
//go:embed resources/*
var resources embed.FS
-var hv *hypervisor.Hypervisor
-
func main() {
if os.Getenv("VIRTIGO_HOME") == "" {
homeDir, _ := os.UserHomeDir()
@@ -59,7 +58,7 @@ func main() {
driver := hypervisor.NewRPCDriver(newConn)
hv = hypervisor.New(driver)
- poolHypervisor(hv)
+ pollHypervisor(hv)
startHTTP()
}