@@ -144,10 +144,9 @@ func (c *Consumer) HandleStreamEvent(ctx context.Context, xe *events.XRPCStreamE
144
144
145
145
// Emit identity update
146
146
e := models.Event {
147
- Did : xe .RepoIdentity .Did ,
148
- Kind : models .EventKindIdentity ,
149
- EventType : models .EventIdentity ,
150
- Identity : xe .RepoIdentity ,
147
+ Did : xe .RepoIdentity .Did ,
148
+ Kind : models .EventKindIdentity ,
149
+ Identity : xe .RepoIdentity ,
151
150
}
152
151
// Send to the sequencer
153
152
c .buf <- & e
@@ -168,10 +167,9 @@ func (c *Consumer) HandleStreamEvent(ctx context.Context, xe *events.XRPCStreamE
168
167
169
168
// Emit account update
170
169
e := models.Event {
171
- Did : xe .RepoAccount .Did ,
172
- Kind : models .EventKindAccount ,
173
- EventType : models .EventAccount ,
174
- Account : xe .RepoAccount ,
170
+ Did : xe .RepoAccount .Did ,
171
+ Kind : models .EventKindAccount ,
172
+ Account : xe .RepoAccount ,
175
173
}
176
174
// Send to the sequencer
177
175
c .buf <- & e
@@ -234,9 +232,8 @@ func (c *Consumer) HandleRepoCommit(ctx context.Context, evt *comatproto.SyncSub
234
232
span .SetAttributes (attribute .String ("event_kind" , op .Action ))
235
233
236
234
e := models.Event {
237
- Did : evt .Repo ,
238
- EventType : models .EventCommit ,
239
- Kind : models .EventKindCommit ,
235
+ Did : evt .Repo ,
236
+ Kind : models .EventKindCommit ,
240
237
}
241
238
242
239
switch ek {
@@ -273,7 +270,6 @@ func (c *Consumer) HandleRepoCommit(ctx context.Context, evt *comatproto.SyncSub
273
270
e .Commit = & models.Commit {
274
271
Rev : evt .Rev ,
275
272
Operation : models .CommitOperationCreate ,
276
- OpType : models .CommitCreateRecord ,
277
273
Collection : collection ,
278
274
RKey : rkey ,
279
275
Record : recJSON ,
@@ -312,7 +308,6 @@ func (c *Consumer) HandleRepoCommit(ctx context.Context, evt *comatproto.SyncSub
312
308
e .Commit = & models.Commit {
313
309
Rev : evt .Rev ,
314
310
Operation : models .CommitOperationUpdate ,
315
- OpType : models .CommitUpdateRecord ,
316
311
Collection : collection ,
317
312
RKey : rkey ,
318
313
Record : recJSON ,
@@ -323,7 +318,6 @@ func (c *Consumer) HandleRepoCommit(ctx context.Context, evt *comatproto.SyncSub
323
318
e .Commit = & models.Commit {
324
319
Rev : evt .Rev ,
325
320
Operation : models .CommitOperationDelete ,
326
- OpType : models .CommitDeleteRecord ,
327
321
Collection : collection ,
328
322
RKey : rkey ,
329
323
}
0 commit comments