updated build system
This commit is contained in:
		| @@ -26,6 +26,7 @@ | ||||
| #include "app_config.hpp" | ||||
| #include "providers/i_provider.hpp" | ||||
| #include "types/startup_exception.hpp" | ||||
| #include "utils/common.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| @@ -179,7 +180,8 @@ auto lock_data::wait_for_lock(int fd, std::uint8_t retry_count) -> int { | ||||
|     if (lock_status == -1) { | ||||
|       lock_status = errno; | ||||
|       if (lock_status == EWOULDBLOCK) { | ||||
|         auto sleep_ms = utils::random_between(1U, std::min(remain, max_sleep)); | ||||
|         auto sleep_ms = | ||||
|             utils::generate_random_between(1U, std::min(remain, max_sleep)); | ||||
|         std::this_thread::sleep_for(std::chrono::milliseconds(sleep_ms)); | ||||
|         remain -= sleep_ms; | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user