Skip to content

Commit

Permalink
Merge branch 'milestone2' of github.com:SkycoinProject/skywire-mainne…
Browse files Browse the repository at this point in the history
…t into fix/rule-expiration
  • Loading branch information
Darkren committed Mar 2, 2020
2 parents ae700d4 + 7724006 commit fc0c5ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/routing/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ func (r Rule) Summary() *RuleSummary {
KeyRouteID: r.KeyRouteID(),
}

rd := r.RouteDescriptor()

switch t := summary.Type; t {
case RuleConsume:
rd := r.RouteDescriptor()

summary.ConsumeFields = &RuleConsumeFields{
RouteDescriptor: RouteDescriptorFields{
DstPK: rd.DstPK(),
Expand All @@ -343,6 +343,8 @@ func (r Rule) Summary() *RuleSummary {
},
}
case RuleForward:
rd := r.RouteDescriptor()

summary.ForwardFields = &RuleForwardFields{
RouteDescriptor: RouteDescriptorFields{
DstPK: rd.DstPK(),
Expand Down

0 comments on commit fc0c5ae

Please sign in to comment.