feat: add new method and for db req and add to template max retry
Some checks failed
build / build (push) Failing after 1m48s

This commit is contained in:
d3m0k1d
2026-02-19 10:53:55 +03:00
parent 2e9b307194
commit 7f54db0cd4
5 changed files with 44 additions and 27 deletions

View File

@@ -299,21 +299,3 @@ func (w *RequestWriter) CreateTable() error {
w.logger.Info("Created requests table")
return nil
}
func (w *RequestWriter) Close() error {
w.logger.Info("Closing request database connection")
err := w.db.Close()
if err != nil {
return err
}
return nil
}
func (w *RequestWriter) GetRequestCount() (int, error) {
var count int
err := w.db.QueryRow("SELECT COUNT(*) FROM requests").Scan(&count)
if err != nil {
return 0, err
}
return count, nil
}