fix endless loop

This commit is contained in:
callebtc 2023-04-17 15:47:03 +02:00
parent 37b48b7c0c
commit 33df69c73a
5 changed files with 45 additions and 14 deletions

View file

@ -11,6 +11,7 @@ from .nostr.relay_manager import RelayManager
from .services import (
nostr,
received_subscription_eosenotices,
received_subscription_notices,
received_subscription_events,
)
@ -68,7 +69,9 @@ async def subscribe_events():
]
return
def callback_notices(eventMessage: NoticeMessage):
def callback_notices(noticeMessage: NoticeMessage):
if noticeMessage not in received_subscription_notices:
received_subscription_notices.append(noticeMessage)
return
def callback_eose_notices(eventMessage: EndOfStoredEventsMessage):