Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 20, 2019
1 parent e437a96 commit 422a3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (sn *Node) createLoop(ctx context.Context, ld routing.LoopDescriptor) error
// - Rule[N] has `respRouteID/nextRouteID` equal to 0;
// Rule[0..N] use their route ID retrieved from the 1st step to be registered within the corresponding visor node.
//
// During the setup process each error received along the way causes all the procedure to be cancelled. RouteID received
// During the setup process each error received along the way causes all the procedure to be canceled. RouteID received
// from the 1st step connecting to the initiating node is used as the ID for the overall rule, thus being returned.
func (sn *Node) createRoute(ctx context.Context, expireAt time.Time, route routing.Route, rport, lport routing.Port) (routing.RouteID, error) {
if len(route) == 0 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/setup/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func CreateLoop(ctx context.Context, p *Protocol, ld routing.LoopDescriptor) err
return readAndDecodePacketWithTimeout(ctx, p, nil) // TODO: data race.
}

// OnConfirmLoop sends OnConfirmLoop setup request.
// ConfirmLoop sends OnConfirmLoop setup request.
func ConfirmLoop(ctx context.Context, p *Protocol, ld routing.LoopData) error {
if err := p.WritePacket(PacketConfirmLoop, ld); err != nil {
return err
Expand All @@ -175,7 +175,7 @@ func CloseLoop(ctx context.Context, p *Protocol, ld routing.LoopData) error {
return readAndDecodePacketWithTimeout(ctx, p, nil)
}

// OnLoopClosed sends OnLoopClosed setup request.
// LoopClosed sends LoopClosed setup request.
func LoopClosed(ctx context.Context, p *Protocol, ld routing.LoopData) error {
if err := p.WritePacket(PacketLoopClosed, ld); err != nil {
return err
Expand Down

0 comments on commit 422a3f0

Please sign in to comment.