Skip to content

Commit

Permalink
Merge pull request #23 from CirclesUBI/workflow/test
Browse files Browse the repository at this point in the history
fix(workflow/test): Formatting and Linting are mandatory
  • Loading branch information
almereyda authored Mar 28, 2023
2 parents 8d53c2f + 73cbdae commit 4846da2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# Capacity graph runtime state
capacity_graph.db
8 changes: 4 additions & 4 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<usize>()
.unwrap();;
.unwrap();

let thread_count = env::args()
let thread_count = env::args()
.nth(3)
.unwrap_or_else(|| "4".to_string())
.parse::<u64>()
.unwrap();;
.unwrap();

server::start_server(&listen_at, queue_size, thread_count);
}

0 comments on commit 4846da2

Please sign in to comment.