chore: changes for otel and fixes to loop

This commit is contained in:
xuu
2025-03-24 14:03:39 -06:00
parent 42fe9176b7
commit 42a9b26b22
9 changed files with 252 additions and 38 deletions

4
app.go
View File

@@ -99,7 +99,7 @@ func run(c *console) error {
c.Context = ctx
wg.Go(func() error {
return refreshLoop(c, app)
return feedRefreshProcessor(c, app)
})
go httpServer(c, app)
@@ -132,7 +132,7 @@ func (app *appState) DB(ctx context.Context) (db, error) {
db := db{Params: make(map[string]string)}
db.DB, err = otelsql.Open(app.args.dbtype, app.args.dbfile,
otelsql.WithAttributes(semconv.DBSystemSqlite),
otelsql.WithDBName("mydb"))
otelsql.WithDBName("xt"))
if err != nil {
return db, err
}