Replace usleep with util::sleep_for (#19643)

* replace usleep with sleep_for

* sleep microseconds

* sleep nanoseconds

* Trigger Build
old-commit-hash: c1cf0882bd4e0fce5e1a581536f6a0e7afb640e6
This commit is contained in:
Dean Lee
2021-01-05 01:03:11 +08:00
committed by GitHub
parent df0435c933
commit bbfb751d69
13 changed files with 34 additions and 28 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ int Params::read_db_value_blocking(const char* key, char** value, size_t* value_
if (result == 0) {
break;
} else {
usleep(100000); // 0.1 s
util::sleep_for(100); // 0.1 s
}
}