diff options
author | Ken Chen <cken@google.com> | 2023-03-27 14:13:08 +0000 |
---|---|---|
committer | Ken Chen <cken@google.com> | 2023-03-27 14:15:37 +0000 |
commit | 50746ee15082e2518dd0987bde205d97bf478e49 (patch) | |
tree | dbf9ba458c124ce0ad0b54ee43c64339826bec22 | |
parent | bd17a08389773181e5536ce7ec8a3ae637db4f90 (diff) | |
download | DnsResolver-50746ee15082e2518dd0987bde205d97bf478e49.tar.gz |
[Code Health] Fix misc-const-correctness build warning
Fix lint on Ica3f7d3c5a262a797a6bdc99147c63d5a9108dff
Change-Id: I90dbc91d5c0437ac8556277ff79e39f8f936a10f
Test: TH
-rw-r--r-- | res_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res_cache.cpp b/res_cache.cpp index 91865c85..701dbf39 100644 --- a/res_cache.cpp +++ b/res_cache.cpp @@ -1290,7 +1290,7 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query, // wait until (1) timeout OR // (2) cv is notified AND no pending request matching the |key| // (cv notifier should delete pending request before sending notification.) - bool ret = cv.wait_for(lock, std::chrono::seconds(PENDING_REQUEST_TIMEOUT), + const bool ret = cv.wait_for(lock, std::chrono::seconds(PENDING_REQUEST_TIMEOUT), [netid, &cache, &key]() REQUIRES(cache_mutex) { // Must update cache as it could have been deleted cache = find_named_cache_locked(netid); |