File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -472,8 +472,7 @@ bool WasmHandleBase::canary(const std::shared_ptr<PluginBase> &plugin,
472
472
if (this ->wasm () == nullptr ) {
473
473
return false ;
474
474
}
475
- std::string plugin_key (plugin->key ());
476
- auto it = plugin_canary_cache_.find (plugin_key);
475
+ auto it = plugin_canary_cache_.find (plugin->key ());
477
476
if (it != plugin_canary_cache_.end ()) {
478
477
return it->second ;
479
478
}
@@ -495,11 +494,11 @@ bool WasmHandleBase::canary(const std::shared_ptr<PluginBase> &plugin,
495
494
if (!configuration_canary_handle->wasm ()->configure (root_context, plugin)) {
496
495
configuration_canary_handle->wasm ()->fail (FailState::ConfigureFailed,
497
496
" Failed to configure base Wasm plugin" );
498
- plugin_canary_cache_[plugin_key ] = false ;
497
+ plugin_canary_cache_[plugin-> key () ] = false ;
499
498
return false ;
500
499
}
501
500
configuration_canary_handle->kill ();
502
- plugin_canary_cache_[plugin_key ] = true ;
501
+ plugin_canary_cache_[plugin-> key () ] = true ;
503
502
return true ;
504
503
}
505
504
You can’t perform that action at this time.
0 commit comments