refactor: make finding leader in metasrv client dynamic (#6343)

Signed-off-by: luofucong <luofc@foxmail.com>
This commit is contained in:
LFC
2025-06-18 19:29:23 +08:00
committed by GitHub
parent 4b04c402b6
commit 6da8e00243
15 changed files with 199 additions and 108 deletions

View File

@@ -93,6 +93,7 @@ impl InstanceBuilder {
MetaClientType::Datanode { member_id },
meta_client_options,
Some(&plugins),
None,
)
.await
.context(MetaClientInitSnafu)?;

View File

@@ -283,6 +283,7 @@ impl StartCommand {
MetaClientType::Flownode { member_id },
meta_config,
None,
None,
)
.await
.context(MetaClientInitSnafu)?;

View File

@@ -313,6 +313,7 @@ impl StartCommand {
MetaClientType::Frontend,
meta_client_options,
Some(&plugins),
None,
)
.await
.context(error::MetaClientInitSnafu)?;