Switch to partial repo fetches
This commit is contained in:
parent
346aa7c539
commit
553894dc6a
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue