Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 1e6d4c6

Browse files
committed
fix: use copy instead of reference
1 parent ea24ea4 commit 1e6d4c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

engine/main.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
250250
.setClientMaxMemoryBodySize(1024 * 1024); // 1MiB before writing to disk
251251

252252
auto validate_api_key = [config_service](const drogon::HttpRequestPtr& req) {
253-
auto const& api_keys =
254-
config_service->GetApiServerConfiguration()->api_keys;
253+
auto api_keys = config_service->GetApiServerConfiguration()->api_keys;
255254
static const std::unordered_set<std::string> public_endpoints = {
256255
"/healthz", "/processManager/destroy"};
257256

0 commit comments

Comments
 (0)