Skip to content

[Cleanup] write_event 用 clone() 复制 Event #351

@TrueNine

Description

@TrueNine

🐛 问题描述

sdk/src/infra/logger/sink.rs:31-38write_event 接收 &Event 但输出线程需要拥有权,每次调用都 clone。

📁 证据

sink.rs 第 31-38 行。

✅ 修复建议

考虑使用 Arc<Event>&'static 避免 clone。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglowLow priorityrustRust SDK/CLI/MCP code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions