Skip to content

The default machine should not always have 16 bits. #82

@iyad-f

Description

@iyad-f

So currently, if machineId isn't provided the default is to get the 16 lower bits of the private ip, but in case the user provides BitsMachineId = 10 and not the MachineId in that case also the lib will try to set the machineId to 16 lower bits of the private ip which will raise the ErrInvalidMachineID because of

sf.machine >= 1<<sf.bitsMachine {
		return nil, ErrInvalidMachineID
	}

Metadata

Metadata

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