Skip to content

Commit

Permalink
doc: update getting-started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Aug 2, 2023
1 parent e401aef commit 640d32d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void registerIdDefinition(String name, SnowflakeIdProperties.IdDefinitio
}

private void registerSnowflakeId(String name, SnowflakeId snowflakeId) {
if (!idGeneratorProvider.get(name).isPresent()) {
if (idGeneratorProvider.get(name).isEmpty()) {
idGeneratorProvider.set(name, snowflakeId);
}

Expand Down
Loading

0 comments on commit 640d32d

Please sign in to comment.