We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46d6b8 commit 8dc6502Copy full SHA for 8dc6502
1 file changed
src/nameservice/UpstreamPolicies.cc
@@ -612,8 +612,8 @@ void UPSWeightedRandomPolicy::fuse_one_server(const EndpointAddress *addr)
612
EndpointAddress *UPSVNSWRRPolicy::first_strategy(const ParsedURI& uri,
613
WFNSTracing *tracing)
614
{
615
- int idx = this->cur_idx.fetch_add(1);
616
- int pos = 0;
+ size_t idx = this->cur_idx.fetch_add(1);
+ size_t pos = 0;
617
for (int i = 0; i < this->total_weight; i++, idx++)
618
619
pos = this->pre_generated_vec[idx % this->pre_generated_vec.size()];
0 commit comments