From 69a555a1447f360d4d863e20cd6a4c3e1cecef21 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Wed, 18 Nov 2020 19:38:08 -0500 Subject: [PATCH] formatting issue --- poll/cli.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poll/cli.go b/poll/cli.go index ff72c8f..dd0d83a 100644 --- a/poll/cli.go +++ b/poll/cli.go @@ -51,12 +51,13 @@ func handleClient(commandClient net.Conn, reportPostChan chan ReportPost) { _, exists := runninginstances[commandmap.Endpoint] if exists == true { log.Println("Already exists: " + commandmap.Endpoint) + responseback.Message = "Exists: " + commandmap.Endpoint } else { + responseback.Message = "Added: " + commandmap.Endpoint runninginstances[commandmap.Endpoint] = RunningInstance{} + go StartInstance(commandmap.Endpoint, reportPostChan) } ri_mutex.Unlock() - go StartInstance(commandmap.Endpoint, reportPostChan) - responseback.Message = "Already exists: " + commandmap.Endpoint case "suspend": fmt.Println("Suspend") case "resume":