node: shorten hostname for load testing
This commit is contained in:
parent
034c570b33
commit
e6dfb9115e
|
@ -1003,10 +1003,16 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
if idx != 0 {
|
||||
// try to connect to guardian-0
|
||||
for {
|
||||
// tilt uses this hostname format
|
||||
_, err := net.LookupIP("guardian-0.guardian")
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
// load tests use this hostname format
|
||||
_, err = net.LookupIP("guardian-0")
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
logger.Info("Error resolving guardian-0.guardian. Trying again...")
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue