Jelajahi Sumber

Sanity Check Additional Fixes

Danny Reidenbach 5 tahun lalu
induk
melakukan
4facd5f428

+ 1 - 1
src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc

@@ -342,7 +342,7 @@ tsi_result alts_tsi_handshaker_result_create(grpc_gcp_HandshakerResp* resp,
   if (grpc_gcp_Identity_has_attributes(
           const_cast<grpc_gcp_Identity*>(peer_identity))) {
     size_t iter = UPB_MAP_BEGIN;
-    grpc_gcp_Identity_AttributesEntry* peer_attributes_entry = 
+    grpc_gcp_Identity_AttributesEntry* peer_attributes_entry =
         grpc_gcp_Identity_attributes_nextmutable(peer_identity, &iter);
     while (peer_attributes_entry != nullptr) {
       upb_strview key = grpc_gcp_Identity_AttributesEntry_key(

+ 1 - 2
src/cpp/common/alts_context.cc

@@ -89,12 +89,11 @@ AltsContext::AltsContext(const grpc_gcp_AltsContext* ctx) {
           grpc_gcp_AltsContext_PeerAttributesEntry_key(peer_attributes_entry);
       upb_strview val =
           grpc_gcp_AltsContext_PeerAttributesEntry_value(peer_attributes_entry);
-      peer_attributes_map_[std::string(key.data, key.size)] = 
+      peer_attributes_map_[std::string(key.data, key.size)] =
           std::string(val.data, val.size);
       peer_attributes_entry =
           grpc_gcp_AltsContext_peer_attributes_next(ctx, &iter);
     }
-
   }
 }
 

+ 1 - 1
test/cpp/common/alts_util_test.cc

@@ -105,7 +105,7 @@ TEST(AltsUtilTest, AuthContextWithGoodAltsContextWithoutRpcVersions) {
                        expected_peer_atrributes_key.length()),
       upb_strview_make(expected_peer_atrributes_value.data(),
                        expected_peer_atrributes_value.length()),
-      context_arena.ptr()); 
+      context_arena.ptr());
   size_t serialized_ctx_length;
   char* serialized_ctx = grpc_gcp_AltsContext_serialize(
       context, context_arena.ptr(), &serialized_ctx_length);