Skip to content

Commit

Permalink
Fix monitorFilter (#1498)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <[email protected]>
  • Loading branch information
glazychev-art authored Aug 1, 2023
1 parent 8dc1419 commit aeae47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/networkservice/common/monitor/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (m *monitorFilter) Send(event *networkservice.ConnectionEvent) error {
Connections: networkservice.FilterMapOnManagerScopeSelector(event.GetConnections(), m.selector),
}
if rv.Type == networkservice.ConnectionEventType_INITIAL_STATE_TRANSFER || len(rv.GetConnections()) > 0 {
if err := m.MonitorConnection_MonitorConnectionsServer.Send(event); err != nil {
return errors.Wrapf(err, "MonitorConnections server failed to send an event %s", event.String())
if err := m.MonitorConnection_MonitorConnectionsServer.Send(rv); err != nil {
return errors.Wrapf(err, "MonitorConnections server failed to send an event %s", rv.String())
}
}
return nil
Expand Down

0 comments on commit aeae47c

Please sign in to comment.