| 37 | } |
| 38 | |
| 39 | static AwaitTask reloadConfig(AwaitEventLoop& await, ThreadPool& threadPool, ConfigLoadJob& job) |
| 40 | { |
| 41 | job.task = readConfigFile(await, threadPool, job); |
| 42 | SC_CO_TRY(co_await await.spawnAndWait(job.task)); |
| 43 | |
| 44 | if (job.result.data.sizeInBytes() == 0) |
| 45 | { |
| 46 | co_return Result::Error("AwaitConfigReload loaded an empty config"); |
| 47 | } |
| 48 | |
| 49 | co_return Result(true); |
| 50 | } |
| 51 | |
| 52 | static Result runAwaitConfigReload() |
| 53 | { |
no test coverage detected