File tree 4 files changed +4
-4
lines changed
util/net_http/client/testing
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ void AspiredVersionsManager::ProcessAspiredVersionsRequest(
262
262
const std::vector<ServableStateSnapshot<Aspired>> state_snapshots =
263
263
basic_manager_->GetManagedServableStateSnapshots <Aspired>(
264
264
string (servable_name));
265
- for (const ServableStateSnapshot<Aspired> state_snapshot : state_snapshots) {
265
+ for (const ServableStateSnapshot<Aspired>& state_snapshot : state_snapshots) {
266
266
if (state_snapshot.additional_state ->is_aspired ) {
267
267
current_aspired_versions.insert (state_snapshot.id .version );
268
268
}
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ Status Server::BuildAndStart(const Options& server_options) {
337
337
builder.SetMaxMessageSize (tensorflow::kint32max);
338
338
const std::vector<GrpcChannelArgument> channel_arguments =
339
339
parseGrpcChannelArgs (server_options.grpc_channel_arguments );
340
- for (GrpcChannelArgument channel_argument : channel_arguments) {
340
+ for (const GrpcChannelArgument& channel_argument : channel_arguments) {
341
341
// gRPC accept arguments of two types, int and string. We will attempt to
342
342
// parse each arg as int and pass it on as such if successful. Otherwise we
343
343
// will pass it as a string. gRPC will log arguments that were not accepted.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Status VerifySignature(const SignatureDef& signature) {
48
48
template <typename T>
49
49
std::set<string> GetMapKeys (const T& proto_map) {
50
50
std::set<string> keys;
51
- for (auto it : proto_map) {
51
+ for (const auto & it : proto_map) {
52
52
keys.insert (it.first );
53
53
}
54
54
return keys;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ bool SendRequest(const char* url) {
43
43
std::cout << " Response received: " << std::endl
44
44
<< " Status: " << response.status << std::endl;
45
45
46
- for (auto keyval : response.headers ) {
46
+ for (const auto & keyval : response.headers ) {
47
47
std::cout << keyval.first << " : " << keyval.second << std::endl;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments