Skip to content

Commit

Permalink
Fix a compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Sep 4, 2019
1 parent d02bad5 commit 7678e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (sn *Node) createRoute(ctx context.Context, keepAlive time.Duration, route
nextTpID = r[i+1].Transport
rule = routing.ForwardRule(keepAlive, 0, nextTpID, 0)
} else {
rule = routing.AppRule(keepAlive, 0, 0, init, rport, lport)
rule = routing.AppRule(keepAlive, 0, 0, init, lport, rport)
}

go func(i int, pk cipher.PubKey, rule routing.Rule, reqIDChIn <-chan routing.RouteID,
Expand Down
2 changes: 1 addition & 1 deletion pkg/visor/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func NewMockRPCClient(r *rand.Rand, maxTps int, maxRules int) (cipher.PubKey, RP
if err != nil {
panic(err)
}
appRule := routing.AppRule(ruleKeepAlive, fwdRID, remotePK, rp, lp, appRID)
appRule := routing.AppRule(ruleKeepAlive, appRID, fwdRID, remotePK, lp, rp)
if err := rt.SetRule(appRID, appRule); err != nil {
panic(err)
}
Expand Down

0 comments on commit 7678e2c

Please sign in to comment.