refactor: clean up not needed code and comments

This commit is contained in:
Patryk Hegenberg 2025-09-24 08:30:55 +02:00
parent 49095b78d4
commit 2f20c58400

View file

@ -141,16 +141,6 @@ func (em *ExportManager) exportBatch(ctx context.Context) {
if lastErr != nil && backoff > 0 { if lastErr != nil && backoff > 0 {
slog.Error("Failed to mark entries as exported after retries", "error", lastErr) slog.Error("Failed to mark entries as exported after retries", "error", lastErr)
} }
// if err := em.storage.(*SQLiteStorage).MarkAsExported(ctx, ids); err != nil {
// if strings.Contains(err.Error(), "database is locked") {
// time.Sleep(50 * time.Millisecond)
// err := em.storage.(*SQLiteStorage).MarkAsExported(ctx, ids)
// if err != nil {
// slog.Error("Failed to mark entries as exported", "error", err)
// }
// }
// slog.Error("Failed to mark entries as exported", "error", err)
// }
} }
} }