Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 20, 2019
1 parent 35ba4e1 commit 6009d28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ func (sn *Node) createRoute(ctx context.Context, expireAt time.Time, route routi
return 0, rulesSetupErr
}

// value gets passed to the chan only if no errors occurred during the route establishment
// errors are being filtered above, so at the moment we get to this part, the value is
// guaranteed to be in the channel
routeID := <-resultingRouteIDCh
close(resultingRouteIDCh)

Expand Down

0 comments on commit 6009d28

Please sign in to comment.