Skip to content

Commit

Permalink
fix ci 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lean-apple committed Nov 8, 2023
1 parent e34ea4d commit 2974ef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:
EOF
bitcoind -regtest -rpcport=18444
sleep 5
bitcoind -regtest -rpcport=18445
sleep 5
- name: Run
run: cargo run

- name: Test
run: cargo test

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Stop bitcoin node
run: bitcoin-cli -regtest -rpcport=18444 stop

# - name: Clippy
# run: cargo clippy --all-targets --all-features -- -D warnings

- name: Format
run: cargo fmt --check
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn perform_handshake() -> Result<()> {
stream.flush()?;

// Read the version message response from the peer
let mut response_buffer = [0u8; 1024]; // Adjust the buffer size as necessary.
let mut response_buffer = [0u8; 1024];
stream.read(&mut response_buffer)?;

// Create and send a verack message as an acknowledgment
Expand Down

0 comments on commit 2974ef5

Please sign in to comment.