added client Makefile
This commit is contained in:
2
client/golang/Makefile
Normal file
2
client/golang/Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
build:
|
||||
go build -ldflags="-s -w" -o saprus client.go
|
||||
@@ -102,8 +102,8 @@ func main() {
|
||||
// Listen timeout
|
||||
select {
|
||||
case returnMSG := <- addrChan:
|
||||
fmt.Printf("Discovery Server: %s\n", strings.Fields(returnMSG)[1])
|
||||
fmt.Printf("%s\n", strings.Fields(returnMSG)[1])
|
||||
case <- time.After(5 * time.Second):
|
||||
fmt.Printf("Discovery Server not found\n")
|
||||
fmt.Printf("error\n")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user