Proper context.Context usage

This commit is contained in:
Caleb Gardner
2024-10-24 00:00:08 -05:00
parent fcab9458ee
commit 6965917e76
19 changed files with 126 additions and 118 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package backend
import (
"context"
"crypto/ed25519"
"embed"
"encoding/json"
@@ -83,7 +84,7 @@ func (b *Backend) cleanupLoop() {
if tab == nil {
continue
}
err = tab.RemoveOldLogs(old)
err = tab.RemoveOldLogs(context.Background(), old)
if err != nil {
log.Printf("error removing old logs for %v: %v\n", a.AppID(), err)
}