latencyEWMA method
LatencyEWMA returns an exponentially-weighted moving avg. of all measurements of a peer's latency.
Implementation
@override
Future<Duration> latencyEWMA(PeerId id) async {
return await _lock.synchronized(() async {
return _latencyMap[id.toString()] ?? Duration.zero;
});
}