Add the ability to fetch all servers, fix cpu usage leak again..

This commit is contained in:
Matthew Penner
2020-04-10 15:39:07 -06:00
parent e719c67e0b
commit 28c8f3f400
11 changed files with 87 additions and 76 deletions

View File

@@ -7,6 +7,7 @@ import (
"os"
"github.com/pkg/errors"
"github.com/pkg/profile"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/router"
@@ -36,6 +37,8 @@ func init() {
}
func rootCmdRun(cmd *cobra.Command, args []string) {
defer profile.Start().Stop()
c, err := config.ReadConfiguration(configPath)
if err != nil {
panic(err)