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 d04cdd3 commit 952bbf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
10 changes: 1 addition & 9 deletions network/models/routingevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,5 @@ func (u *RoutingEvent) Update(newer *RoutingEvent) {
}

func (u *RoutingEvent) IsEmpty() bool {
return u.IncomingChannelId == 0 &&
u.OutgoingChannelId == 0 &&
u.IncomingHtlcId == 0 &&
u.OutgoingHtlcId == 0 &&
u.IncomingTimelock == 0 &&
u.OutgoingTimelock == 0 &&
u.AmountMsat == 0 &&
u.FeeMsat == 0 &&
u.FailureCode == 0
return u.OutgoingChannelId == 0
}
5 changes: 1 addition & 4 deletions pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,8 @@ func (p *PubSub) routingUpdates(ctx context.Context, sub chan *events.Event) {
go func() {
for hu := range routingUpdates {
p.logger.Debug("receive htlcUpdate")
if !hu.IsEmpty() {
p.logger.Debug("EMPTY BANG BANG")
if (*hu).OutgoingChannelId != 0 {
sub <- events.NewWithData(events.RoutingEventUpdated, hu)
} else {
p.logger.Debug("NOT EMPTY BANG BANG")
}
}
p.wg.Done()
Expand Down

0 comments on commit 952bbf4

Please sign in to comment.