mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-20 08:32:25 +00:00
perf(feishu): make reaction non-blocking to speed up inbound dispatch
Reaction emoji is now added as a fire-and-forget background task instead of blocking the inbound message pipeline. This removes one API round-trip from the critical path before the agent starts processing.
This commit is contained in:
parent
a0e97e360e
commit
3ece7256d1
@ -1556,8 +1556,9 @@ class FeishuChannel(BaseChannel):
|
||||
logger.debug("Feishu: skipping group message (not mentioned)")
|
||||
return
|
||||
|
||||
# Add reaction
|
||||
reaction_id = await self._add_reaction(message_id, self.config.react_emoji)
|
||||
# Add reaction (non-blocking — fire and forget)
|
||||
reaction_id = None
|
||||
asyncio.create_task(self._add_reaction(message_id, self.config.react_emoji))
|
||||
|
||||
# Parse content
|
||||
content_parts = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user