Skip to content

Commit

Permalink
GitHub Actions: pin Rust version to 1.58 like on CircleCI
Browse files Browse the repository at this point in the history
* Fix failing `cargo clippy` while we're here.
  The behavior has been changed in Rust 1.60: rust-lang/rust-clippy#8928
* Add Rust version to the Cargo deps cache key
  • Loading branch information
yeputons committed Jun 1, 2022
1 parent e5cb727 commit ef138aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
# If we want to duplicate this job for different
# Rust toolchains (e.g. nightly or 1.37.0), add them here.
rust_toolchain: [stable]
rust_toolchain: [1.58]
os: [ubuntu-latest, macos-latest]
timeout-minutes: 30
name: run regression test suite
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}-rust-${{ matrix.rust_toolchain }}

- name: Run cargo clippy
run: ./run_clippy.sh
Expand Down
9 changes: 3 additions & 6 deletions pageserver/src/walreceiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
},
Expand Down

0 comments on commit ef138aa

Please sign in to comment.