MCPcopy Create free account
hub / github.com/Roy3838/Observer / first_delivery

Function first_delivery

api/remote.py:206–211  ·  view source on GitHub ↗

False if this provider message id was already processed (webhook retries).

(msg_id: str | None)

Source from the content-addressed store, hash-verified

204
205
206async def first_delivery(msg_id: str | None) -> bool:
207 """False if this provider message id was already processed (webhook retries)."""
208 if not msg_id:
209 return True
210 r = await get_redis()
211 return bool(await r.set(f"remote:seen:{msg_id}", "1", nx=True, ex=SEEN_TTL))
212
213
214async def _revoke(code: str, channel: Channel) -> None:

Callers

nothing calls this directly

Calls 1

get_redisFunction · 0.90

Tested by

no test coverage detected