Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fiksn committed Sep 1, 2023
1 parent fca22ee commit f6553ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/voter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ where
guard.remove(&node.node_id);
}

pub(super) async fn get_nodeinfo(node_id: NodeId) -> Option<NodeInfo> {
async fn get_nodeinfo(node_id: NodeId) -> Option<NodeInfo> {
reqwest::get(format!("https://1ml.com/node/{}/json", node_id.to_string()))
.await.ok()?.json::<NodeInfo>().await.ok()

Expand Down

0 comments on commit f6553ed

Please sign in to comment.