+1
-1
cmd/backfiller/backfill.go
+1
-1
cmd/backfiller/backfill.go
+10
-17
cmd/backfiller/cursors.go
+10
-17
cmd/backfiller/cursors.go
············-if err := cs.store.Model(&cursorRecord{}).Where("key = ?", key).Update("val", value).Error; err != nil {-return fmt.Errorf("error updating cursor record: %+v: %w", cursorRecord{Key: key, Val: value}, err)+if err := cs.store.Model(&cursorRecord{}).Where("key = ?", "firehose").Update("val", cs.firehoseSeq).Error; err != nil {+if err := cs.store.Model(&cursorRecord{}).Where("key = ?", "repos").Update("val", cs.reposSeq).Error; err != nil {
+25
-22
cmd/backfiller/handlers.go
+25
-22
cmd/backfiller/handlers.go
······-func (hs *HandlerService) HandleCreate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error {+func (hs *HandlerService) HandleUpsert(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error {-func (hs *HandlerService) HandleUpdate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error {
+3
-10
cmd/backfiller/main.go
+3
-10
cmd/backfiller/main.go
···
+69
-2
cmd/backfiller/models.go
+69
-2
cmd/backfiller/models.go
···