File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,16 @@ class WasmVm;
45
45
* @param vm_id is a string used to differentiate VMs with the same code and VM configuration.
46
46
* @param plugin_configuration is configuration for this plugin.
47
47
* @param fail_open if true the plugin will pass traffic as opposed to close all streams.
48
+ * @param key is used for caching PluginHandleBase per thread and determining whether to create a
49
+ * new PluginHandleBase.
48
50
*/
49
51
struct PluginBase {
50
52
PluginBase (std::string_view name, std::string_view root_id, std::string_view vm_id,
51
- std::string_view runtime, std::string_view plugin_configuration, bool fail_open)
53
+ std::string_view runtime, std::string_view plugin_configuration, bool fail_open,
54
+ std::string_view key)
52
55
: name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)),
53
56
runtime_ (std::string(runtime)), plugin_configuration_(plugin_configuration),
54
- fail_open_(fail_open), key_(root_id_ + " ||" + plugin_configuration_),
55
- log_prefix_(makeLogPrefix()) {}
57
+ fail_open_(fail_open), key_(key), log_prefix_(makeLogPrefix()) {}
56
58
57
59
const std::string name_;
58
60
const std::string root_id_;
You can’t perform that action at this time.
0 commit comments