1
0
mirror of synced 2026-04-27 10:48:41 +08:00

auto commit

This commit is contained in:
yitter
2021-04-05 21:21:39 +08:00
parent be0994641d
commit 2f4adc1a2e
13 changed files with 46 additions and 53 deletions

View File

@@ -13,18 +13,13 @@ extern void SetIdGenerator(IdGeneratorOptions options) {
extern void SetWorkerId(uint32_t workerId) {
IdGeneratorOptions options = BuildIdGenOptions(workerId);
// SetOptions(options);
SetIdGenerator(options);
}
extern uint64_t NextId() {
extern int64_t NextId() {
return GetIdGenInstance()->NextId();
// IdGenerator *generator = GetIdGenInstance();
// uint64_t id = generator->NextId();
// free(generator);
// return id;
}
extern uint64_t TestId() {
return 123456;
}