remove old test log and add log for exiting loop

This commit is contained in:
Cam Otts 2023-01-12 10:15:10 -06:00
parent 3a79608474
commit deb6831fee
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -28,12 +28,12 @@ func (ma *maintenanceAgent) run() {
select {
case <-ma.ctx.Done():
{
logrus.Info("Stopping maintenance loop...")
ticker.Stop()
return
}
case <-ticker.C:
{
logrus.Info("TICK")
if err := ma.deleteExpiredAccountRequests(); err != nil {
logrus.Error(err)
}