Monorepo for Tangled tangled.org

knotserver: invalidate directory cache on identity events #1272

deleted opened by boltless.me targeting master from sl/comment
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mimbhgiq6k22
+8 -1
Diff #0
+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
sign up or login to add to the discussion
boltless.me submitted #0
1 commit
expand
knotserver: invalidate directory cache on identity events
3/3 failed
expand
expand 1 comment

Accidentally added this in wrong stack 馃槄 It is a fix we need, but haven't checked if this actually works, so closing for now.

This pull has been deleted (possibly by jj abandon or jj squash)