sapling/eden/mononoke/megarepo_api/if
Mateusz Kwapich b163dc98a9 change the return format of poll requests to include the request result
Summary:
Until now we had no way of distinguishing the following two situations:
 * request failed and the returned error represents this failure
 * pooling request failed, the state of actual request is unknown (it might not have even finish yet!)

This diff changes the returned structure to provide the union of error and
response. This has also an upside of simplifying code as the thrift result is
**exactly** what we store in our blobstore.

Reviewed By: StanislavGlebik

Differential Revision: D28747624

fbshipit-source-id: 60473d1491a8c8a016838ec9b2fea0939af10079
2021-06-02 01:40:52 -07:00
..
Cargo.toml megarepo: basic version of async-requests crate 2021-05-10 06:51:37 -07:00
megarepo_types_thrift.thrift change the return format of poll requests to include the request result 2021-06-02 01:40:52 -07:00
thrift_build.rs megarepo: basic version of async-requests crate 2021-05-10 06:51:37 -07:00
thrift_lib.rs megarepo: basic version of async-requests crate 2021-05-10 06:51:37 -07:00