Skip to content

根据主机的IP生成workerId的IdGenerator实现 #191

Closed
@hanahmily

Description

IPWorkerIdIdGenerator:获取机器的二进制表示的后10位,设置成workerId。
列如:
机器的IP为192.168.1.108(C0. A8.01. 6C),二进制后十位为:00000001.01101100设置workerId为364。

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions