| 28 | }; |
| 29 | |
| 30 | static AwaitTask readConfigFile(AwaitEventLoop& await, ThreadPool& threadPool, ConfigLoadJob& job) |
| 31 | { |
| 32 | SC_CO_TRY(co_await await.fsOpen(threadPool, job.path, FileOpen::Read, job.file)); |
| 33 | SC_CO_TRY(co_await await.fsRead(threadPool, job.file, {job.buffer, sizeof(job.buffer)}, job.result)); |
| 34 | SC_CO_TRY(co_await await.fsClose(threadPool, job.file)); |
| 35 | |
| 36 | co_return Result(true); |
| 37 | } |
| 38 | |
| 39 | static AwaitTask reloadConfig(AwaitEventLoop& await, ThreadPool& threadPool, ConfigLoadJob& job) |
| 40 | { |
no test coverage detected