Signed-off-by: Seongmin Lee git@boltless.me
+8
-1
Diff
round #0
+8
-1
knotserver/ingester.go
+8
-1
knotserver/ingester.go
···
358
358
}
359
359
360
360
func (h *Knot) processMessages(ctx context.Context, event *models.Event) error {
361
-
if event.Kind != models.EventKindCommit {
361
+
switch event.Kind {
362
+
case models.EventKindAccount:
363
+
if !event.Account.Active && *event.Account.Status == "deactivated" {
364
+
return h.resolver.InvalidateIdent(ctx, event.Identity.Did)
365
+
}
362
366
return nil
367
+
case models.EventKindIdentity:
368
+
return h.resolver.InvalidateIdent(ctx, event.Identity.Did)
369
+
case models.EventKindCommit:
363
370
}
364
371
365
372
var err error
History
1 round
1 comment
boltless.me
submitted
#0
1 commit
expand
collapse
knotserver: invalidate directory cache on identity events
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 failed
expand
collapse
expand 1 comment
This pull has been deleted (possibly by jj abandon or jj squash)
Accidentally added this in wrong stack 馃槄 It is a fix we need, but haven't checked if this actually works, so closing for now.