Skip to content

Commit

Permalink
change oldApps logic on read config on vpn-monitor | remove unnecessa…
Browse files Browse the repository at this point in the history
…ry codes
  • Loading branch information
mrpalide committed Jan 9, 2024
1 parent b713db9 commit 2ce79fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cmd/vpn-monitor/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package commands

import (
"context"
"fmt"
"log"
"os"
"time"
Expand Down Expand Up @@ -60,8 +59,6 @@ var RootCmd = &cobra.Command{
mLogger := logging.NewMasterLogger()
conf := api.InitConfig(confPath, mLogger)

fmt.Println(conf.Version)

srvURLs := api.ServicesURLs{
SD: conf.Launcher.ServiceDisc,
UT: conf.UptimeTracker.Addr,
Expand Down
2 changes: 1 addition & 1 deletion pkg/vpn-monitor/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func InitConfig(confPath string, mLog *logging.MasterLogger) *visorconfig.V1 {
for _, app := range conf.Launcher.Apps {
for _, oldApp := range oldConf.Launcher.Apps {
if app.Name == oldApp.Name {
newConfLauncherApps = append(newConfLauncherApps, app)
newConfLauncherApps = append(newConfLauncherApps, oldApp)
}
}
}
Expand Down

0 comments on commit 2ce79fd

Please sign in to comment.