Skip to content

Commit 8b9c659

Browse files
committed
update
1 parent 3deac38 commit 8b9c659

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/server_base/args.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,12 @@ ServerArgs::ServerArgs(const std::string& sql_addr,
5050
join(join) {}
5151

5252
ServerInfo::ServerInfo() {
53-
// UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator;
54-
// UUIDv4::UUID uuid = uuidGenerator.getUUID();
55-
// SPDLOG_INFO("server uuid: {}", uuid.str());
5653
uuid_t uuid;
57-
uuid_generate(uuid); // generates random UUID
54+
uuid_generate(uuid);
5855
char str[37];
5956
uuid_unparse(uuid, str);
6057
SPDLOG_INFO("server uuid: {}", str);
61-
// std::string(str);
58+
this->id = std::string(str);
6259
}
6360

6461
ServerInfo::~ServerInfo() = default;

0 commit comments

Comments
 (0)