sapling/eden/scm/lib/revisionstore
Thomas Orozco 35ed8fe3dc revisionstore/lfs: retry 429
Summary:
When the server returns a 429, the intention is that the client will wait for a
little bit then try again later (there is no harm in that, as we haven't really
used many server resources for this). However, it turned out that right now we
just abort. Let's fix it!

Note that this changes the behavior a bit for the error cases, in the sense
that we no longer return `Ok(None)` but instead return an `Err`. Xavier noted
this should make sense here.

I've also had the client send its retry attempt via a header, because who
knows, that might be useful.

Reviewed By: kulshrax

Differential Revision: D24308127

fbshipit-source-id: 35639956f36342dfb0056b0d348dc4ad56bd576c
2020-10-15 01:11:32 -07:00
..
src revisionstore/lfs: retry 429 2020-10-15 01:11:32 -07:00
types edenapi: Hide edenapi wire types from externally visible API 2020-09-23 17:27:08 -07:00
Cargo.toml revisionstore: add progress bars to EdenAPI stores 2020-09-30 13:01:15 -07:00