From 950792cc8b6d86d952fcdd6a481776d3d5e7e064 Mon Sep 17 00:00:00 2001 From: Jaz Volpert Date: Thu, 2 Nov 2023 23:12:47 +0000 Subject: [PATCH] Fix repo migration cache busting, was using the wrong union member --- bgs/bgs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgs/bgs.go b/bgs/bgs.go index be7396932..f388e791d 100644 --- a/bgs/bgs.go +++ b/bgs/bgs.go @@ -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 {