This commit is contained in:
Stephan D
2026-03-10 12:31:09 +01:00
parent d87e709f43
commit e77d1ab793
287 changed files with 2089 additions and 1550 deletions

View File

@@ -434,7 +434,7 @@ func buildGatewayLimits(cfg limitsConfig) *gatewayv1.Limits {
if bucket == "" {
continue
}
limits.VelocityLimit[bucket] = int32(value)
limits.VelocityLimit[bucket] = int32(value) //nolint:gosec // velocity limits are validated config values
}
}
@@ -450,7 +450,7 @@ func buildGatewayLimits(cfg limitsConfig) *gatewayv1.Limits {
MinAmount: strings.TrimSpace(override.MinAmount),
MaxAmount: strings.TrimSpace(override.MaxAmount),
MaxFee: strings.TrimSpace(override.MaxFee),
MaxOps: int32(override.MaxOps),
MaxOps: int32(override.MaxOps), //nolint:gosec // max ops is a validated config value
}
}
}
@@ -546,11 +546,12 @@ func (i *Imp) startHTTPCallbackServer(svc *auroraservice.Service, cfg callbackRu
})
server := &http.Server{
Addr: cfg.Address,
Handler: router,
Addr: cfg.Address,
Handler: router,
ReadHeaderTimeout: 5 * time.Second,
}
ln, err := net.Listen("tcp", cfg.Address)
ln, err := (&net.ListenConfig{}).Listen(context.Background(), "tcp", cfg.Address)
if err != nil {
return err
}