mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2026-01-03 22:34:22 +01:00
some more code cleanup
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
|
||||
@@ -63,7 +62,6 @@ class EventDefinitions:
|
||||
KIND_NIP88_TIER_EVENT = Kind(37001)
|
||||
KIND_NUT_WALLET = Kind(37375)
|
||||
|
||||
|
||||
ANY_RESULT = [KIND_NIP90_RESULT_EXTRACT_TEXT,
|
||||
KIND_NIP90_RESULT_SUMMARIZE_TEXT,
|
||||
KIND_NIP90_RESULT_TRANSLATE_TEXT,
|
||||
@@ -97,6 +95,7 @@ class RequiredJobToWatch:
|
||||
event: Event
|
||||
timestamp: int
|
||||
|
||||
|
||||
@dataclass
|
||||
class InvoiceToWatch:
|
||||
sender: str
|
||||
@@ -108,4 +107,4 @@ class InvoiceToWatch:
|
||||
|
||||
|
||||
relay_timeout = EventSource.relays(timedelta(seconds=5))
|
||||
relay_timeout_long = EventSource.relays(timedelta(seconds=10))
|
||||
relay_timeout_long = EventSource.relays(timedelta(seconds=10))
|
||||
|
||||
Reference in New Issue
Block a user