From: n0tlu5 Date: Sun, 22 Dec 2024 04:35:24 +0000 (+0700) Subject: removes redundant first check flag; removes trailing whitespace X-Git-Tag: dnsdist-2.0.0-alpha1~178^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c5bfb027d7f85e4320dfff1ecc6ff018a606dc;p=thirdparty%2Fpdns.git removes redundant first check flag; removes trailing whitespace --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index fc0314ece5..95148b3f40 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -232,14 +232,11 @@ private: state->first = false; } } - + void setWeight(const CheckDesc& cd, int weight){ auto statuses = d_statuses.write_lock(); auto& state = (*statuses)[cd]; state->weight = weight; - if (state->first) { - state->first = false; - } } void setDown(const ComboAddress& rem, const std::string& url=std::string(), const opts_t& opts = opts_t())