瀏覽代碼

Avoid map Copying

Danny Reidenbach 5 年之前
父節點
當前提交
d4bd067466
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/grpcpp/security/alts_context.h

+ 1 - 1
include/grpcpp/security/alts_context.h

@@ -51,7 +51,7 @@ class AltsContext {
   std::string local_service_account() const;
   grpc_security_level security_level() const;
   RpcProtocolVersions peer_rpc_versions() const;
-  std::map<std::string, std::string> peer_attributes();
+  const std::map<std::string, std::string> peer_attributes() const;
 
  private:
   std::string application_protocol_;