Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

feat: add timeout for calls to ADM service #140

Merged
merged 5 commits into from
Jun 8, 2021
Merged

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented Jun 7, 2021

Description

  • Uses setting adm_timeout, and defaults to 5 seconds
    I suspect that we probably may have different timeouts for various
    partners. There is no timeout specified for a default reqwest builder.

Testing

requests to ADM should take no longer than 5 seconds in default setting

Issue(s)

Closes #139

jrconlin added 3 commits June 4, 2021 10:04
* Uses setting `adm_timeout`, and defaults to 5 seconds

I suspect that we probably may have different timeouts for various
partners. There is no timeout specified for a default reqwest builder.

Closes #139
@jrconlin jrconlin requested review from pjenvey and a team June 7, 2021 23:41
src/settings.rs Outdated
@@ -58,6 +58,8 @@ pub struct Settings {
pub adm_max_tiles: u8,
/// number of tiles to query from ADM (default: 10)
pub adm_query_tile_count: u8,
/// Timeout requests to the ADM server after this many seconds (default: 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Timeout requests to the ADM server after this many seconds (default: 3)
/// Timeout requests to the ADM server after this many seconds (default: 5)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh, oh, you saw that too? 🤦🏻‍♂️

@jrconlin jrconlin merged commit 4837bb5 into main Jun 8, 2021
@jrconlin jrconlin deleted the feat/139-timeout branch June 8, 2021 00:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add timeout for ADM requests
2 participants