refactor(libstore): use string_view in HttpBinaryCacheStore::makeRequest
This commit is contained in:
@@ -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. */
|
||||
auto cacheUriWithTrailingSlash = config->cacheUri;
|
||||
|
||||
@@ -86,7 +86,7 @@ protected:
|
||||
const std::string & mimeType,
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user