Skip to content

【建議】unique_msg_id #10

@837951602

Description

@837951602

目前的ob11消息事件定位消息用的是message_id:uint31(即int32只用正數)。多數實現是對內部的唯一編碼進行hash,這導致

  • 幾萬條消息就大概率碰撞
  • 需要特別維護逆向hash表

這導致目前的bot只能迴應短時間內的消息,像日程功能無法回覆當時的那條請求。

是否應當增加unique_msg_id: string參數。要求不與uint31混淆(通過更長的數字或包含非數字字符),能支持長時間跨度的引用?

尚未正式聯繫那些實現

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions