mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-29 02:40:54 +02:00
Avoids creating another keySet.
This commit is contained in:
parent
8695acb742
commit
b795ca06d1
@ -36,7 +36,7 @@ abstract class NostrDataSource(val debugName: String) {
|
||||
|
||||
private val clientListener = object : Client.Listener() {
|
||||
override fun onEvent(event: Event, subscriptionId: String, relay: Relay, afterEOSE: Boolean) {
|
||||
if (subscriptionId in subscriptions.keys) {
|
||||
if (subscriptions.containsKey(subscriptionId)) {
|
||||
val key = "$debugName $subscriptionId ${event.kind}"
|
||||
val keyValue = eventCounter.get(key)
|
||||
if (keyValue != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user