this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

goat: print #sync commit data

+6
+6
cmd/goat/firehose.go
··· 180 180 } 181 181 182 182 func (gfc *GoatFirehoseConsumer) handleSyncEvent(ctx context.Context, evt *comatproto.SyncSubscribeRepos_Sync) error { 183 + commit, err := repo.LoadCommitFromCAR(ctx, bytes.NewReader(evt.Blocks)) 184 + if err != nil { 185 + return err 186 + } 187 + evt.Blocks = nil 183 188 out := make(map[string]interface{}) 184 189 out["type"] = "sync" 190 + out["commit"] = commit.AsData() 185 191 out["payload"] = evt 186 192 b, err := json.Marshal(out) 187 193 if err != nil {