Skip to content

Commit

Permalink
Remove some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Nov 20, 2024
1 parent edb8212 commit 736c318
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/nameservice/UpstreamPolicies.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ int UPSGroupPolicy::remove_server_locked(const std::string& address)
else
vec = &group->backups;

//std::lock_guard<std::mutex> lock(group->mutex);
pthread_mutex_lock(&group->mutex);
if (params->server_type == 0)
group->weight -= params->weight;
Expand Down
1 change: 0 additions & 1 deletion src/nameservice/WFServiceGovernance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ bool WFServiceGovernance::select(const ParsedURI& uri, WFNSTracing *tracing,
return false;
}

// select_addr == NULL will only happened in consistent_hash
EndpointAddress *select_addr = this->first_strategy(uri, tracing);

if (!select_addr ||
Expand Down

0 comments on commit 736c318

Please sign in to comment.