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

Merge pull request #14377 from lovesegfault/makerequest-stringview

refactor(libstore): use string_view in HttpBinaryCacheStore::makeRequest
This commit is contained in:
John Ericson 2025-10-27 17:58:53 +00:00 committed by GitHub
commit 91ed3701fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,7 @@ void HttpBinaryCacheStore::upsertFile(
} }
} }
FileTransferRequest HttpBinaryCacheStore::makeRequest(const std::string & path) FileTransferRequest HttpBinaryCacheStore::makeRequest(std::string_view path)
{ {
/* Otherwise the last path fragment will get discarded. */ /* Otherwise the last path fragment will get discarded. */
auto cacheUriWithTrailingSlash = config->cacheUri; auto cacheUriWithTrailingSlash = config->cacheUri;

View file

@ -86,7 +86,7 @@ protected:
const std::string & mimeType, const std::string & mimeType,
uint64_t sizeHint) override; uint64_t sizeHint) override;
FileTransferRequest makeRequest(const std::string & path); FileTransferRequest makeRequest(std::string_view path);
void getFile(const std::string & path, Sink & sink) override; void getFile(const std::string & path, Sink & sink) override;