summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()
}