Commit Graph

9 Commits

Author SHA1 Message Date
b60c849a73 Remove all_descrs method from origin store 2024-01-22 16:58:03 +01:00
78b67a02ad Make origin::Store::sync async
In order for this method to make sense as an async, the returned box
must have its lifetime tied to the store. This did not jive well with
the mock implementation of origin::Store, so I ditched that, along with
the mux tests which depended on it. Oh well.
2024-01-21 16:18:31 +01:00
dbb8e442c8 Fixes from clippy 2024-01-10 10:42:48 +01:00
Brian Picciano
9beeffcdcf Revert "Have get_file accept and return structs, which will be easier to extend going forward"
This reverts commit a86020eedf.

Turns out that even with this change proxying won't work properly via
origin::Store, it'll just have to be a special case. I'm keeping the
commit around in case we want this for a later case.
2023-07-16 16:09:37 +02:00
Brian Picciano
a86020eedf Have get_file accept and return structs, which will be easier to extend going forward 2023-07-16 15:40:20 +02:00
Brian Picciano
82290d8b0b Get rid of read_file_into, use streams to serve files from domain manager 2023-07-08 15:53:40 +02:00
Brian Picciano
8b75b141f4 Alias BoxByteStream, and test git get_file implementation 2023-07-08 15:22:44 +02:00
Brian Picciano
60b90746fc Implement origin::Store::get_file, to deprecate read_file_into 2023-07-08 14:43:36 +02:00
Brian Picciano
5e264093ec Get rid of origin::Origin trait completely, move read_file_into onto the origin::Store itself 2023-07-05 19:03:51 +02:00