+82
cmd/backfiller/backend.go
+82
cmd/backfiller/backend.go
···+func (b *Backend) RepoCommitHandler(ctx context.Context, evt *comatproto.SyncSubscribeRepos_Commit) error {+if err := b.state.Model(cursorRecord{}).Where("id = 1 and val < ?", v).Update("val", v).Error; err != nil {
+33
-24
cmd/backfiller/backfiller.go
+33
-24
cmd/backfiller/backfiller.go
······func handleCreate(ctx context.Context, repo, rev, path string, rec *[]byte, cid *cid.Cid) error {······-con, _, err := websocket.DefaultDialer.Dial("wss://bsky.network/xrpc/com.atproto.sync.subscribeRepos", http.Header{···bf := backfill.NewBackfiller("backfills", store, handleCreate, handleUpdate, handleDelete, opts)···