Ensure schemas wait for init

This commit is contained in:
Sergey Krashevich
2026-02-13 10:33:18 +03:00
parent 2735bafd86
commit aa4e90d9d8
4 changed files with 72 additions and 0 deletions
+2
View File
@@ -177,5 +177,7 @@ func apiPreload(w http.ResponseWriter, r *http.Request) {
}
func apiSchemes(w http.ResponseWriter, r *http.Request) {
// Wait until all module Init() calls finish in main.
WaitReady()
api.ResponseJSON(w, SupportedSchemes())
}