Pass integrated validator for API (#1814)

Pass integrated validator for API handler
This commit is contained in:
Zoltan Papp
2024-04-15 12:08:38 +02:00
committed by GitHub
parent 5ea24ba56e
commit 5204d07811
5 changed files with 8 additions and 6 deletions

View File

@@ -251,7 +251,7 @@ var (
ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()
httpAPIHandler, err := httpapi.APIHandler(ctx, accountManager, geo, *jwtValidator, appMetrics, httpAPIAuthCfg)
httpAPIHandler, err := httpapi.APIHandler(ctx, accountManager, geo, *jwtValidator, appMetrics, httpAPIAuthCfg, integratedPeerValidator)
if err != nil {
return fmt.Errorf("failed creating HTTP API handler: %v", err)
}