fix endless loop
This commit is contained in:
parent
37b48b7c0c
commit
33df69c73a
5 changed files with 45 additions and 14 deletions
5
tasks.py
5
tasks.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue