Skip to content

Commit

Permalink
delete type casting in etcd
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyano authored Jul 26, 2024
1 parent 9ab235c commit 8a59db7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class ETCDMetaStorage implements IMetaStorage {
private final int STORAGE_ENGINE_NODE_LENGTH = 10;

private String generateID(String prefix, long idLength, long val) {
return String.format(prefix + "%0" + idLength + "d", (int) val);
return String.format(prefix + "%0" + idLength + "d", val);
}

public ETCDMetaStorage() {
Expand Down

0 comments on commit 8a59db7

Please sign in to comment.