Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotmirror: don't schedule resync on xrpc fails

Signed-off-by: Seongmin Lee <git@boltless.me>

authored by

Seongmin Lee and committed by
Tangled
d362e967 a69f6eb4

-16
-16
knotmirror/xrpc/proxy.go
··· 83 83 } 84 84 } 85 85 86 - go func() { 87 - bgCtx := context.Background() 88 - pending := &models.Repo{ 89 - Did: owner.DID, 90 - Rkey: repoAt.RecordKey(), 91 - Cid: (*syntax.CID)(out.Cid), 92 - Name: record.Name, 93 - KnotDomain: knotURL, 94 - State: models.RepoStatePending, 95 - } 96 - x.logger.Debug("pending: upserting repo with knot", "knot", pending.KnotDomain) 97 - if upsertErr := db.UpsertRepo(bgCtx, x.db, pending); upsertErr != nil { 98 - x.logger.Error("failed to upsert repo after proxy resolution", "err", upsertErr) 99 - } 100 - }() 101 - 102 86 return &knotInfo{ 103 87 baseURL: knotURL, 104 88 didSlashRepo: fmt.Sprintf("%s/%s", owner.DID, record.Name),