+1
-2
cmd/backfiller/backend.go
+1
-2
cmd/backfiller/backend.go
+11
-4
cmd/backfiller/handlers.go
+11
-4
cmd/backfiller/handlers.go
···-func (b *Backend) RepoCommitHandler(ctx context.Context, evt *comatproto.SyncSubscribeRepos_Commit) error {···-func handleCreate(ctx context.Context, repo, rev, path string, rec *[]byte, cid *cid.Cid) error {-func handleUpdate(ctx context.Context, repo, rev, path string, rec *[]byte, cid *cid.Cid) error {
······+type handleOpCreateUpdate func(context.Context, string, string, string, *[]byte, *cid.Cid) error+func (b *Backend) HandleCreateOp(ctx context.Context, repo, rev, path string, rec *[]byte, cid *cid.Cid) error {+func (b *Backend) HandleUpdateOp(ctx context.Context, repo, rev, path string, rec *[]byte, cid *cid.Cid) error {
+16
-11
cmd/backfiller/main.go
+16
-11
cmd/backfiller/main.go
··················
···············+bf := NewBackfiller(db, backend.HandleCreateOp, backend.HandleUpdateOp, backend.HandleDeleteOp)···