Skip to content

max_timestamp may be wrong #3

@sam3125C

Description

@sam3125C

You calculate the max_timestamp by this:
max_timestamp = 1 << (64 - datacenter_id_bits - worker_id_bits - sequence_id_bits)

You seem to have forgotten the timestamp can only be 41-bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions