Skip to content

Commit

Permalink
Use default values when plugin configuration doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmqtt committed Aug 16, 2023
1 parent 8801cc4 commit df8a810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmqtt-plugins/rmqtt-sys-topic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl SystemTopicPlugin {
descr: D,
) -> Result<Self> {
let name = name.into();
let cfg = runtime.settings.plugins.load_config::<PluginConfig>(&name)?;
let cfg = runtime.settings.plugins.load_config_default::<PluginConfig>(&name)?;
log::debug!("{} SystemTopicPlugin cfg: {:?}", name, cfg);
let register = runtime.extends.hook_mgr().await.register();
let cfg = Arc::new(RwLock::new(cfg));
Expand Down

0 comments on commit df8a810

Please sign in to comment.