diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e64dce5..6863f0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,13 +27,13 @@ jobs: run: echo ~/.foundry/bin/ >> $GITHUB_PATH - name: Install Dependencies run: curl -L https://foundry.paradigm.xyz | bash && foundryup + - name: Format + run: cargo fmt --check --verbose + - name: Lint + run: cargo clippy --all --all-features -- -D warnings - name: Build run: cargo build --verbose - name: Download safes run: wget -q -c https://rpc.circlesubi.id/pathfinder-db/capacity_graph.db - name: Run tests run: cargo test --verbose - - name: Lint - run: cargo clippy --all --all-features -- -D warnings - - name: Format - run: cargo fmt --check --verbose diff --git a/.gitignore b/.gitignore index 088ba6b..35ae214 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk + +# Capacity graph runtime state +capacity_graph.db diff --git a/src/bin/server.rs b/src/bin/server.rs index f18b9b3..6b0b2ec 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -7,17 +7,17 @@ fn main() { .nth(1) .unwrap_or_else(|| "127.0.0.1:8080".to_string()); - let queue_size = env::args() + let queue_size = env::args() .nth(2) .unwrap_or_else(|| "10".to_string()) .parse::() - .unwrap();; + .unwrap(); - let thread_count = env::args() + let thread_count = env::args() .nth(3) .unwrap_or_else(|| "4".to_string()) .parse::() - .unwrap();; + .unwrap(); server::start_server(&listen_at, queue_size, thread_count); }