- Bugfix to mark relay connections as AfterEOSE when the relay client or server closes the subscription

- Adds an arrival time to log the time EOSEs were received in case the listener is running async processes later.
This commit is contained in:
Vitor Pamplona
2025-05-13 14:43:28 -04:00
parent 2d5732bcce
commit 50cde1bc3e
9 changed files with 47 additions and 50 deletions
@@ -42,6 +42,7 @@ class RelayLogger(
event: Event,
subscriptionId: String,
relay: Relay,
arrivalTime: Long,
afterEOSE: Boolean,
) {
Log.d(TAG, "Relay onEVENT ${relay.url} ($subscriptionId - $afterEOSE) ${event.toJson()}")
@@ -46,6 +46,7 @@ class RelaySpeedLogger(
event: Event,
subscriptionId: String,
relay: Relay,
arrivalTime: Long,
afterEOSE: Boolean,
) {
val now = TimeUtils.now() / 10