go template

This commit is contained in:
Bel LaPointe
2025-12-09 15:48:23 -07:00
parent 67879cf7b0
commit 8740f890da
4 changed files with 53 additions and 1 deletions

View File

@@ -42,7 +42,10 @@ func PSQL(ctx context.Context, conn string, foo func(db *sql.DB) error) error {
if ok {
return
}
case <-time.After(time.Second * 5):
}
select {
case <-ctx.Done():
case <-time.After(time.Second):
}
}
}()