chore: build
This commit is contained in:
@@ -7,16 +7,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func StartPaymentChecker(database *db.Database, np *services.NowPaymentsClient, interval time.Duration) {
|
||||
go func() {
|
||||
for {
|
||||
time.Sleep(interval)
|
||||
checkPendingCryptoPayments(database, np)
|
||||
}
|
||||
}()
|
||||
log.Printf("[CRON] payment checker démarré (toutes les %s)", interval)
|
||||
}
|
||||
|
||||
// StartDynamicPaymentChecker démarre un checker qui recharge le client NowPayments à chaque tick
|
||||
// (permet de prendre en compte les changements de clé API sans redémarrer)
|
||||
func StartDynamicPaymentChecker(database *db.Database, clientFn func() *services.NowPaymentsClient, interval time.Duration) {
|
||||
|
||||
Reference in New Issue
Block a user