Skip to content

Commit 4e8200a

Browse files
authored
Fix merge conflict regarding clickhouse-admin (#6834)
1 parent d0c79b6 commit 4e8200a

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nexus/reconfigurator/execution/src/clickhouse.rs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ pub(crate) async fn deploy_nodes(
9292
let log = log.new(slog::o!("admin_url" => admin_url.clone()));
9393
futs.push(Either::Left(async move {
9494
let client = Client::new(&admin_url, log.clone());
95-
client.generate_keeper_config(&config).await.map(|_| ()).map_err(
96-
|e| {
95+
client
96+
.generate_keeper_config_and_enable(&config)
97+
.await
98+
.map(|_| ())
99+
.map_err(|e| {
97100
anyhow!(
98101
concat!(
99102
"failed to send config for clickhouse keeper ",
@@ -104,8 +107,7 @@ pub(crate) async fn deploy_nodes(
104107
admin_url,
105108
e
106109
)
107-
},
108-
)
110+
})
109111
}));
110112
}
111113
for config in server_configs {
@@ -119,8 +121,11 @@ pub(crate) async fn deploy_nodes(
119121
let log = opctx.log.new(slog::o!("admin_url" => admin_url.clone()));
120122
futs.push(Either::Right(async move {
121123
let client = Client::new(&admin_url, log.clone());
122-
client.generate_server_config(&config).await.map(|_| ()).map_err(
123-
|e| {
124+
client
125+
.generate_server_config_and_enable(&config)
126+
.await
127+
.map(|_| ())
128+
.map_err(|e| {
124129
anyhow!(
125130
concat!(
126131
"failed to send config for clickhouse server ",
@@ -131,8 +136,7 @@ pub(crate) async fn deploy_nodes(
131136
admin_url,
132137
e
133138
)
134-
},
135-
)
139+
})
136140
}));
137141
}
138142

0 commit comments

Comments
 (0)