mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
GitHub Actions: pin Rust version to 1.58 like on CircleCI
* Fix failing `cargo clippy` while we're here. The behavior has been changed in Rust 1.60: https://github.com/rust-lang/rust-clippy/issues/8928 * Add Rust version to the Cargo deps cache key
This commit is contained in:
committed by
Egor Suvorov
parent
b155fe0e2f
commit
aba5e5f8b5
@@ -469,12 +469,9 @@ async fn timeline_wal_broker_loop_step(
|
||||
updates = broker_subscription.fetch_data() => match updates {
|
||||
Some(mut all_timeline_updates) => {
|
||||
if let Some(subscribed_timeline_updates) = all_timeline_updates.remove(&id) {
|
||||
match wal_connection_manager.select_connection_candidate(subscribed_timeline_updates) {
|
||||
Some(candidate) => {
|
||||
info!("Switching to different safekeeper {} for timeline {id}, reason: {:?}", candidate.safekeeper_id, candidate.reason);
|
||||
wal_connection_manager.change_connection(candidate.safekeeper_id, candidate.wal_producer_connstr).await;
|
||||
},
|
||||
None => {}
|
||||
if let Some(candidate) = wal_connection_manager.select_connection_candidate(subscribed_timeline_updates) {
|
||||
info!("Switching to different safekeeper {} for timeline {id}, reason: {:?}", candidate.safekeeper_id, candidate.reason);
|
||||
wal_connection_manager.change_connection(candidate.safekeeper_id, candidate.wal_producer_connstr).await;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user