Switch to partial repo fetches

main
Max Ignatenko 2024-03-17 15:34:26 +00:00
parent 346aa7c539
commit 553894dc6a
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ retry:
} }
} }
b, err := comatproto.SyncGetRepo(ctx, client, work.Repo.DID, "") // TODO: add a configuration knob for switching between full and partial fetch.
b, err := comatproto.SyncGetRepo(ctx, client, work.Repo.DID, work.Repo.LastIndexedRev)
if err != nil { if err != nil {
if err, ok := errors.As[*xrpc.Error](err); ok { if err, ok := errors.As[*xrpc.Error](err); ok {
if err.IsThrottled() && err.Ratelimit != nil { if err.IsThrottled() && err.Ratelimit != nil {