1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #14333 from lovesegfault/upsert-size-hint

refactor(libstore): add sizeHint parameter to upsertFile()
This commit is contained in:
John Ericson 2025-10-24 19:29:06 +00:00 committed by GitHub
commit 1a9ba0d6fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 7 deletions

View file

@ -155,7 +155,8 @@ protected:
void upsertFile(
const std::string & path,
std::shared_ptr<std::basic_iostream<char>> istream,
const std::string & mimeType) override
const std::string & mimeType,
uint64_t sizeHint) override
{
auto req = makeRequest(path);