formatting issue

This commit is contained in:
farhan 2020-11-18 19:38:08 -05:00
parent 4cead30ea5
commit 69a555a144

View File

@ -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":