Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 263d2df

Browse files
Merge #280
280: fix misnamed configuration functions r=MarinPostma a=MarinPostma The name for `start_replica` and `start_primary` were mixed up. Co-authored-by: ad hoc <[email protected]>
2 parents e9c19bd + faed92f commit 263d2df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqld/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async fn hard_reset(
173173
Ok(())
174174
}
175175

176-
async fn start_primary(
176+
async fn start_replica(
177177
config: &Config,
178178
join_set: &mut JoinSet<anyhow::Result<()>>,
179179
addr: &str,
@@ -201,7 +201,7 @@ async fn start_primary(
201201
Ok(())
202202
}
203203

204-
async fn start_replica(
204+
async fn start_primary(
205205
config: &Config,
206206
join_set: &mut JoinSet<anyhow::Result<()>>,
207207
idle_shutdown_layer: Option<IdleShutdownLayer>,
@@ -287,9 +287,9 @@ pub async fn run_server(config: Config) -> anyhow::Result<()> {
287287

288288
match config.writer_rpc_addr {
289289
Some(ref addr) => {
290-
start_primary(&config, &mut join_set, addr, idle_shutdown_layer).await?
290+
start_replica(&config, &mut join_set, addr, idle_shutdown_layer).await?
291291
}
292-
None => start_replica(&config, &mut join_set, idle_shutdown_layer).await?,
292+
None => start_primary(&config, &mut join_set, idle_shutdown_layer).await?,
293293
}
294294

295295
let reset = HARD_RESET.clone();

0 commit comments

Comments
 (0)