Skip to content

Commit 5dcfa86

Browse files
committed
refactor(libstore): use string_view in HttpBinaryCacheStore::makeRequest
1 parent 60f9489 commit 5dcfa86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstore/http-binary-cache-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void HttpBinaryCacheStore::upsertFile(
161161
}
162162
}
163163

164-
FileTransferRequest HttpBinaryCacheStore::makeRequest(const std::string & path)
164+
FileTransferRequest HttpBinaryCacheStore::makeRequest(std::string_view path)
165165
{
166166
/* Otherwise the last path fragment will get discarded. */
167167
auto cacheUriWithTrailingSlash = config->cacheUri;

src/libstore/include/nix/store/http-binary-cache-store.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected:
8686
const std::string & mimeType,
8787
uint64_t sizeHint) override;
8888

89-
FileTransferRequest makeRequest(const std::string & path);
89+
FileTransferRequest makeRequest(std::string_view path);
9090

9191
void getFile(const std::string & path, Sink & sink) override;
9292

0 commit comments

Comments
 (0)