thar we GO

This commit is contained in:
Bel LaPointe
2025-04-25 09:42:24 -06:00
parent 031d5f545d
commit 0c5bb025bb
6 changed files with 112 additions and 17 deletions

View File

@@ -2,14 +2,17 @@ package cmd
import (
"context"
"show-rss/src/cleanup"
"show-rss/src/db"
)
func Config(ctx context.Context) (context.Context, error) {
func Config(ctx context.Context) (context.Context, func(), error) {
ctx, err := db.Inject(ctx, "/tmp/f.db")
if err != nil {
return ctx, err
return ctx, nil, err
}
return ctx, nil
return ctx, func() {
cleanup.Extract(ctx)()
}, nil
}