feat(observabillity): #153 instrument sqlx
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 8m11s

This commit is contained in:
2025-06-07 21:55:59 +02:00
parent c4aca2778f
commit 6291700a3b
26 changed files with 425 additions and 402 deletions

View File

@@ -29,7 +29,7 @@ func DoRedirect(w http.ResponseWriter, r *http.Request, url string) {
}
}
func WaitMinimumTime[T interface{}](waitTime time.Duration, f func() (T, error)) (T, error) {
func WaitMinimumTime[T any](waitTime time.Duration, f func() (T, error)) (T, error) {
start := time.Now()
result, err := f()
time.Sleep(waitTime - time.Since(start))