chore: changes for otel and fixes to loop
This commit is contained in:
4
app.go
4
app.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user