fix: replaced invalid refrences to libs and typos
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/yourname/deflated/internal/db"
|
||||
"git.seaofstars.xyz/mohd/deflated/internal/db"
|
||||
)
|
||||
|
||||
// StartRefreshWorker runs in a goroutine and refreshes price snapshots
|
||||
@@ -36,7 +36,8 @@ func StartRefreshWorker(ctx context.Context, q *db.Queries, interval time.Durati
|
||||
|
||||
func runRefresh(ctx context.Context, q *db.Queries) {
|
||||
start := time.Now()
|
||||
if err := q.RefreshPriceSnapshots(ctx); err != nil {
|
||||
// using RebuildSnapshots instead of refreshsnapshots for now
|
||||
if err := q.RebuildSnapshots(ctx); err != nil {
|
||||
log.Printf("error refreshing price snapshots: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user