Switch to partial repo fetches
parent
346aa7c539
commit
553894dc6a
|
@ -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, ok := errors.As[*xrpc.Error](err); ok {
|
||||
if err.IsThrottled() && err.Ratelimit != nil {
|
||||
|
|
Loading…
Reference in New Issue