-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements retry, timeout, socks credential and others fixes
Retry works by checking if an non-protocol error happened during the call, if so an attempt to take a write lock on the client is made and a new client attempted if both operationare succesfull the old_client is substituted with the new one. Timeout is a single parameter for connect,read and write TCP timeouts, special handling is required for the following situation: cannot set a timeout with a proxy and cannot set timeout with multipl SocketAddrs Since configurations parameter grow, a Config struct with a builder has been introduced Some new errors variant has been introduced Errors in reading input in the reader thread now warns other eventual threads with ChannelMessage::Error Add github actions equivalent to travis cause travis is slow
- Loading branch information
Showing
11 changed files
with
471 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: [push, pull_request] | ||
|
||
name: CI | ||
|
||
jobs: | ||
|
||
test-fmt: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
env: | ||
TEST_ELECTRUM_SERVER: electrum.blockstream.info:50001 | ||
#TEST_ELECTRUM_SERVER: bitcoin.aranguren.org:50001 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | ||
- name: Install rustup | ||
run: curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
- name: Set default toolchain | ||
run: $HOME/.cargo/bin/rustup default stable | ||
- name: Set profile | ||
run: $HOME/.cargo/bin/rustup set profile minimal | ||
- name: Fmt | ||
run: cargo fmt -- --check --verbose | ||
- name: Test | ||
run: cargo test --verbose --all | ||
- run: cargo check --verbose --features=use-openssl | ||
- run: cargo check --verbose --no-default-features --features=proxy | ||
- run: cargo check --verbose --no-default-features --features=minimal | ||
- run: cargo check --verbose --no-default-features --features=minimal,debug-calls | ||
- run: cargo check --verbose --no-default-features --features=proxy,use-openssl | ||
- run: cargo check --verbose --no-default-features --features=proxy,use-rustls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.