Skip to content

Commit

Permalink
Fix repo migration cache busting, was using the wrong union member
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Nov 2, 2023
1 parent 6183dd0 commit 950792c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ func (bgs *BGS) handleFedEvent(ctx context.Context, host *models.PDS, env *event
if host.ID != u.PDS && u.PDS != 0 {
log.Warnw("received event for repo from different pds than expected", "repo", evt.Repo, "expPds", u.PDS, "gotPds", host.Host)
// Flush any cached DID documents for this user
bgs.didr.FlushCacheFor(env.RepoHandle.Did)
bgs.didr.FlushCacheFor(env.RepoCommit.Repo)

subj, err := bgs.createExternalUser(ctx, evt.Repo)
if err != nil {
Expand Down

0 comments on commit 950792c

Please sign in to comment.