Skip to content

Commit

Permalink
Merge branch 'berkeley' into dkijania/mina-profile-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania authored Oct 23, 2023
2 parents 30006c7 + 53ccec0 commit c44220e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/itn_orchestrator/src/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -76,7 +75,8 @@ func discoverParticipantsDo(config Config, params DiscoveryParams, output func(N
}
colonIx := strings.IndexRune(meta.RemoteAddr, ':')
if colonIx < 0 {
return fmt.Errorf("wrong remote address in submission %s: %s", name, meta.RemoteAddr)
// No port is specified in the address, hence we just take the whole remote address field
colonIx = len(meta.RemoteAddr)
}
addr := NodeAddress(meta.RemoteAddr[:colonIx] + ":" + strconv.Itoa(int(meta.GraphqlControlPort)))
if _, has := cache[addr]; has {
Expand Down

0 comments on commit c44220e

Please sign in to comment.