File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +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 to uniquely identify this plugin instance.
48
49
*/
49
50
struct PluginBase {
50
51
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)
52
+ std::string_view runtime, std::string_view plugin_configuration, bool fail_open,
53
+ std::string_view key)
52
54
: name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)),
53
55
runtime_ (std::string(runtime)), plugin_configuration_(plugin_configuration),
54
- fail_open_(fail_open), key_(root_id_ + " ||" + plugin_configuration_),
56
+ fail_open_(fail_open),
57
+ key_(root_id_ + " ||" + plugin_configuration_ + " ||" + std::string(key)),
55
58
log_prefix_(makeLogPrefix()) {}
56
59
57
60
const std::string name_;
You can’t perform that action at this time.
0 commit comments