From bd62a78e202085725691450e11607ac7fc744235 Mon Sep 17 00:00:00 2001 From: Lowell Mower Date: Wed, 14 Mar 2018 08:58:23 -0400 Subject: [PATCH] move constant in countServersUp() signature --- pdns/dnsdist.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 199b0ce054..2c76ca263f 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -647,7 +647,7 @@ struct ServerPool std::shared_ptr packetCache{nullptr}; std::shared_ptr policy{nullptr}; - const size_t countServersUp() { + size_t countServersUp() const { size_t upFound = 0; for (const auto& server : servers) { if (std::get<1>(server)->isUp() ) { -- 2.47.2