Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmi committed May 3, 2024
1 parent 66a604f commit 7d6b92a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions network/models/routingevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,5 @@ func (u *RoutingEvent) Update(newer *RoutingEvent) {
}

func (u *RoutingEvent) IsEmpty() bool {
return u.OutgoingChannelId == 0 &&
u.AmountMsat == 0 &&
u.FeeMsat == 0
return u.OutgoingChannelId == 0
}
3 changes: 0 additions & 3 deletions pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func (p *PubSub) routingUpdates(ctx context.Context, sub chan *events.Event) {
for hu := range routingUpdates {
p.logger.Debug("receive htlcUpdate")
if !hu.IsEmpty() {
p.logger.Debug("EMPTY BANG BANG")
sub <- events.NewWithData(events.RoutingEventUpdated, hu)
} else {
p.logger.Debug("NOT EMPTY BANG BANG")
}
}
p.wg.Done()
Expand Down

0 comments on commit 7d6b92a

Please sign in to comment.