Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
slight more optimial handling of signature_provider_for_specification…
Browse files Browse the repository at this point in the history
… return
  • Loading branch information
spoonincode committed May 8, 2020
1 parent fb789f1 commit b6acf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ void producer_plugin::plugin_initialize(const boost::program_options::variables_
const std::vector<std::string> key_spec_pairs = options["signature-provider"].as<std::vector<std::string>>();
for (const auto& key_spec_pair : key_spec_pairs) {
try {
auto [pubkey, provider] = app().get_plugin<signature_provider_plugin>().signature_provider_for_specification(key_spec_pair);
const auto& [pubkey, provider] = app().get_plugin<signature_provider_plugin>().signature_provider_for_specification(key_spec_pair);
my->_signature_providers[pubkey] = provider;
} catch(secure_enclave_exception& e) {
elog("Error with Secure Enclave signature provider: ${e}; ignoring ${val}", ("e", e.top_message())("val", key_spec_pair));
Expand Down

0 comments on commit b6acf22

Please sign in to comment.