mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:29:15 +00:00
* Initial fix of a race condition * better logging * some refactoring and graceful shutdown * fix more potential race condition places; a better app shutdown * add test and fix some issues * some housekeeping * more descriptive asserts * Address review suggestions * Better server shutdown logic + better message about the .env file not found * Create context inside the shutdown goroutine; removed unnecessary shutdown from the main function * Move HTTP server to the main process and remove unnecessary code * log shutdown error if any * Get back to the local `scanner` variable * Protecting scanner with mutex * Adding the mutex to the shutdown function * Addressing the race condition at the init stage --------- Co-authored-by: Konstantin Koval