Pass vector by const reference

This commit is contained in:
Lukas Joswiak 2021-07-01 11:01:52 -07:00
parent 0bd6ac2a8e
commit e828a498cd
1 changed files with 1 additions and 1 deletions

View File

@ -1544,7 +1544,7 @@ public:
}
// Given datacenter ID, returns the primary and remote regions.
std::pair<RegionInfo, RegionInfo> getPrimaryAndRemoteRegion(std::vector<RegionInfo> regions, Key dcId) {
std::pair<RegionInfo, RegionInfo> getPrimaryAndRemoteRegion(const std::vector<RegionInfo>& regions, Key dcId) {
RegionInfo region;
RegionInfo remoteRegion;
for (const auto& r : regions) {