Adding recent uris struct to manually added instances
This commit is contained in:
parent
7e71d0cc7a
commit
102ddbe41c
7
ctl.go
7
ctl.go
@ -74,8 +74,11 @@ func handleClient(commandClient net.Conn) {
|
||||
logInfo.Println("Already exists: " + commandmap.Endpoint)
|
||||
responseback.Message = "Exists: " + commandmap.Endpoint
|
||||
} else {
|
||||
responseback.Message = "Added: " + commandmap.Endpoint
|
||||
runninginstances[commandmap.Endpoint] = RunningInstance{}
|
||||
responseback.Message = "Adding: " + commandmap.Endpoint
|
||||
o := RunningInstance{}
|
||||
o.recenturis = newfifo(5)
|
||||
o.client = BuildClient(commandmap.Endpoint)
|
||||
runninginstances[commandmap.Endpoint] = o
|
||||
go StartInstance(commandmap.Endpoint)
|
||||
}
|
||||
ri_mutex.Unlock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user