From d362e96712aca500338ee8606bcb491c6d24eae6 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Tue, 14 Apr 2026 14:14:37 +0000 Subject: [PATCH] knotmirror: don't schedule resync on xrpc fails Signed-off-by: Seongmin Lee --- knotmirror/xrpc/proxy.go | 16 ---------------- 1 file(s) changed, 0 insertion(s)(+), 16 deletion(s)(-) diff --git a/knotmirror/xrpc/proxy.go b/knotmirror/xrpc/proxy.go --- a/knotmirror/xrpc/proxy.go +++ b/knotmirror/xrpc/proxy.go @@ -83,22 +83,6 @@ } } } - go func() { - bgCtx := context.Background() - pending := &models.Repo{ - Did: owner.DID, - Rkey: repoAt.RecordKey(), - Cid: (*syntax.CID)(out.Cid), - Name: record.Name, - KnotDomain: knotURL, - State: models.RepoStatePending, - } - x.logger.Debug("pending: upserting repo with knot", "knot", pending.KnotDomain) - if upsertErr := db.UpsertRepo(bgCtx, x.db, pending); upsertErr != nil { - x.logger.Error("failed to upsert repo after proxy resolution", "err", upsertErr) - } - }() - return &knotInfo{ baseURL: knotURL, didSlashRepo: fmt.Sprintf("%s/%s", owner.DID, record.Name), -- tangled.sh