whoops (#1271)
This commit is contained in:
@@ -16,6 +16,7 @@ import asyncio
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from urllib.parse import quote
|
||||
@@ -205,6 +206,7 @@ async def publish_replay_batch(replays: list[dict[str, Any]]) -> None:
|
||||
"type": "spectra.replay_batch",
|
||||
"version": 1,
|
||||
"source": "srebot",
|
||||
"sent_at": time.time(),
|
||||
"payload": {"replays": replays},
|
||||
}
|
||||
await _append_external_envelope(envelope)
|
||||
@@ -216,6 +218,7 @@ async def publish_event(event_type: str, payload: dict[str, Any]) -> None:
|
||||
"type": event_type,
|
||||
"version": 1,
|
||||
"source": "srebot",
|
||||
"sent_at": time.time(),
|
||||
"payload": payload,
|
||||
}
|
||||
await _append_external_envelope(envelope)
|
||||
|
||||
Reference in New Issue
Block a user