Merge pull request #35 from simple-rules/ricl-aws

Ricl aws
pull/37/head
7z7 6 years ago committed by GitHub
commit 635171bf76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      aws-experiment-launch/experiment/commander/main.go

@ -20,7 +20,8 @@ var (
func SocketClient(addr string) {
conn, err := net.Dial("tcp", addr)
if err != nil {
log.Fatalln(err)
log.Println(err)
return
}
defer conn.Close()
@ -43,10 +44,6 @@ func main() {
for _, config := range configs {
ip := config[0]
port := "1" + config[1] // the port number of solider is "1" + node port
duty := config[2]
if duty == "client" {
continue
}
addr := strings.Join([]string{ip, port}, ":")
SocketClient(addr)
}

Loading…
Cancel
Save