Skip to content

Commit

Permalink
Remove extra semi colon from proxygen/lib/dns/CAresResolver.cpp
Browse files Browse the repository at this point in the history
Summary:
`-Wextra-semi` or `-Wextra-semi-stmt`

If the code compiles, this is safe to land.

Reviewed By: palmje

Differential Revision: D51995045

fbshipit-source-id: e5befec100356983e08795ad0b6768edf09926c3
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 12, 2023
1 parent 00b58ba commit b0a378e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions third-party/proxygen/src/proxygen/lib/dns/CAresResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ class NullStatsCollector : public DNSResolver::StatsCollector {
~NullStatsCollector() override {
}
void recordSuccess(const std::vector<DNSResolver::Answer>& /*answers*/,
std::chrono::milliseconds /*latency*/) noexcept override{};
std::chrono::milliseconds /*latency*/) noexcept override {
}
void recordError(const folly::exception_wrapper& /*ew*/,
std::chrono::milliseconds /*latency*/) noexcept override{};
void recordQueryResult(uint8_t /*rcode*/) noexcept override{};
std::chrono::milliseconds /*latency*/) noexcept override {
}
void recordQueryResult(uint8_t /*rcode*/) noexcept override {
}
};

NullStatsCollector nullStatsCollector;
Expand Down
3 changes: 2 additions & 1 deletion third-party/proxygen/src/proxygen/lib/dns/DNSResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ std::string DNSResolver::getPtrName(const SocketAddress& address) {

void DNSResolver::resolveMailExchange(ResolutionCallback* /*cb*/,
const std::string& /*domain*/,
std::chrono::milliseconds /*timeout*/){};
std::chrono::milliseconds /*timeout*/) {
}

std::string describe(const DNSResolver::ResolutionStatus status, bool details) {
#define DNSRESOLVER_RESOLUTION_STATUS_STR(sym, descr) #sym,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class Endpoint {
}

explicit Endpoint(const folly::SocketAddress& addr, bool isSecure)
: Endpoint(addr.getAddressStr(), addr.getPort(), isSecure){};
: Endpoint(addr.getAddressStr(), addr.getPort(), isSecure) {
}

const std::string& getHostname() const {
return hostname_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ void SessionHolder::onPingReplySent(int64_t latency) {
if (originalSessionInfoCb_) {
originalSessionInfoCb_->onPingReplySent(latency);
}
};
}

void SessionHolder::onPingReplyReceived() {
if (originalSessionInfoCb_) {
originalSessionInfoCb_->onPingReplyReceived();
}
};
}

void SessionHolder::onSettingsOutgoingStreamsFull(
const HTTPSessionBase& session) {
Expand Down

0 comments on commit b0a378e

Please sign in to comment.