Skip to content

Commit

Permalink
Set timeout in client to be the same as in server, 1 hour (#2)
Browse files Browse the repository at this point in the history
* set timeout in client to be the same as in server, 1 hour
* update github actions
  • Loading branch information
luizirber committed May 4, 2023
1 parent 956c1ba commit 81ed1c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- uses: cachix/install-nix-action@v20
with:
install_url: ${{ matrix.install_url }}
- uses: cachix/cachix-action@v10
- uses: cachix/cachix-action@v12
with:
name: sourmash-bio
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand Down
4 changes: 3 additions & 1 deletion crates/client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ fn main() -> Result<()> {
}

info!("Sending request to https://mastiff.sourmash.bio");
let client = reqwest::blocking::Client::new();
let client = reqwest::blocking::Client::builder()
.timeout(std::time::Duration::from_secs(3600))
.build()?;
let res = client
.post("https://mastiff.sourmash.bio/search")
.body(sig_data)
Expand Down

0 comments on commit 81ed1c0

Please sign in to comment.