Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiSubira committed Sep 28, 2023
1 parent 1c82e9c commit 8264f40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions control/cmd/control/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ func realMain(ctx context.Context) error {
// XXX(JordiSubira): Just take the first address, we only use topology.json with
// information for one unique AS.
hpListener, err := nc.OpenListener(a[0].String())
if err != nil {
return serrors.WrapStr("opening listener for HP", err)
}
g.Go(func() error {
defer log.HandlePanic()
if err := hpInterASServer.Serve(hpListener); err != nil {
Expand Down
5 changes: 4 additions & 1 deletion control/hiddenpaths.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ type HiddenPathConfigurator struct {
// location. An empty location will not enable any hidden path behavior. It
// returns the configuration for the hidden segment writer. The return value can
// be nil if this AS isn't a writer.
func (c HiddenPathConfigurator) Setup(location string) (*grpc.Server, *HiddenPathRegistrationCfg, error) {
func (c HiddenPathConfigurator) Setup(
location string,
) (*grpc.Server, *HiddenPathRegistrationCfg, error) {

if location == "" {
return nil, nil, nil
}
Expand Down

0 comments on commit 8264f40

Please sign in to comment.