diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d67896..70eb81e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,8 @@ jobs: build: strategy: matrix: - platform: [ ubuntu-latest, macos-latest, windows-latest ] - toolchain: [ stable, 1.70.0 ] - include: - - toolchain: stable - check-fmt: true + platform: [ ubuntu-latest ] + toolchain: [ 1.70.0 ] runs-on: ${{ matrix.platform }} steps: - name: Checkout source code @@ -22,7 +19,6 @@ jobs: - name: Build on Rust ${{ matrix.toolchain }} run: cargo build --verbose --color always - name: Check formatting - if: matrix.check-fmt run: rustup component add rustfmt && cargo fmt --all -- --check - name: Test ${{ matrix.toolchain }} run: cargo test --verbose --color always diff --git a/src/resolve.rs b/src/resolve.rs index b877ca3..ed56f90 100644 --- a/src/resolve.rs +++ b/src/resolve.rs @@ -380,7 +380,7 @@ mod tests { #[tokio::test] async fn test_resolve() { let logger = Arc::new(DummyLogger::new()); - let mut resolver = CachingChannelResolving::new(logger); + let resolver = CachingChannelResolving::new(logger); let a = resolver.get_endpoints_async(123u64); resolver.resolve(); diff --git a/src/voter.rs b/src/voter.rs index 26f6d4a..9922e03 100644 --- a/src/voter.rs +++ b/src/voter.rs @@ -150,7 +150,7 @@ where guard.remove(&node.node_id); } - pub(super) async fn get_nodeinfo(node_id: NodeId) -> Option { + async fn get_nodeinfo(node_id: NodeId) -> Option { reqwest::get(format!("https://1ml.com/node/{}/json", node_id.to_string())) .await.ok()?.json::().await.ok()