this repo has no description
0
fork

Configure Feed

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

fallback to clean repo reset in more cases (#666)

If we have a filesystem messup for some reason just wipe and reset the
repo

authored by

Jaz and committed by
GitHub
d7df58d5 ef8e99bf

+4 -1
+4 -1
indexer/repofetch.go
··· 3 3 import ( 4 4 "bytes" 5 5 "context" 6 + "errors" 6 7 "fmt" 8 + "io" 9 + "io/fs" 7 10 "sync" 8 11 9 12 "github.com/bluesky-social/indigo/api/atproto" ··· 147 150 if err := rf.repoman.ImportNewRepo(ctx, ai.Uid, ai.Did, bytes.NewReader(repo), &rev); err != nil { 148 151 span.RecordError(err) 149 152 150 - if ipld.IsNotFound(err) { 153 + if ipld.IsNotFound(err) || errors.Is(err, io.EOF) || errors.Is(err, fs.ErrNotExist) { 151 154 log.Errorw("partial repo fetch was missing data", "did", ai.Did, "pds", pds.Host, "rev", rev) 152 155 repo, err := rf.fetchRepo(ctx, c, &pds, ai.Did, "") 153 156 if err != nil {