refactor(sync): add test syncRaftIdChec

This commit is contained in:
Minghao Li 2022-06-14 14:54:11 +08:00
parent 5268b5233a
commit fa25fa32e0
1 changed files with 3 additions and 3 deletions

View File

@ -15,14 +15,14 @@ int main(int argc, char** argv) {
char host[128];
uint16_t port;
syncUtilU642Addr(u64, host, sizeof(host), &port);
printf("%s:%d \n", host, port);
printf("%lu -> %s:%d \n", u64, host, port);
} else if (argc == 3) {
uint64_t u64;
char* host = argv[1];
uint16_t port = atoi(argv[2]);
syncUtilAddr2U64(host, port);
printf("%lu \n", u64);
u64 = syncUtilAddr2U64(host, port);
printf("%s:%d -> %lu \n", host, port, u64);
} else {
usage(argv[0]);
exit(-1);