Skip to content

Commit

Permalink
update constructing sds mapkey
Browse files Browse the repository at this point in the history
Signed-off-by: Quanjie Lin <quanlin@google.com>
  • Loading branch information
quanjielin committed Feb 8, 2019
1 parent 1d79741 commit 7ce7966
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion source/common/config/config_provider_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ class ConfigProviderManagerImplBase : public ConfigProviderManager, public Singl
using ConfigProviderSet = std::unordered_set<ConfigProvider*>;
using ConfigProviderMap = std::unordered_map<ConfigProviderInstanceType,
std::unique_ptr<ConfigProviderSet>, EnumClassHash>;

using ConfigSubscriptionMap =
std::unordered_map<uint64_t, std::weak_ptr<ConfigSubscriptionInstanceBase>>;

Expand Down
2 changes: 1 addition & 1 deletion source/common/secret/secret_manager_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SecretManagerImpl : public SecretManager {
const std::string& config_name,
Server::Configuration::TransportSocketFactoryContext& secret_provider_context) {
const std::string map_key =
std::to_string(MessageUtil::hash(sds_config_source)) + config_name;
absl::StrCat(MessageUtil::hash(sds_config_source), ".", config_name);

std::shared_ptr<SecretType> secret_provider = dynamic_secret_providers_[map_key].lock();
if (!secret_provider) {
Expand Down

0 comments on commit 7ce7966

Please sign in to comment.