Use a worker to report signal/data stats. (#2260)
* Use a worker to report signal/data stats. Was checking if reporting is needed on every update. The check is wasted work if volume of signal/data messages is high as reporting happens only once in 10 seconds. Changing to a worker based on a timer. And also aligning with telemetry reporting interval which defaults to 30 seconds. * Remove unused constant
This commit is contained in:
@@ -786,7 +786,7 @@ func (p *ParticipantImpl) Close(sendLeave bool, reason types.ParticipantCloseRea
|
||||
p.TransportManager.Close()
|
||||
}()
|
||||
|
||||
p.dataChannelStats.Report()
|
||||
p.dataChannelStats.Stop()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user