This PR contains a variety of changes I made while building my understanding of the code. I some attempt to keep commits focused on a particular change. While reviewing the code, it will probably be helpful to look at each individual commit.
f9673cf fully adopt anyhow errors - Standardizes on anyhow::{Error, Result} instead of mixing std::io::Result and dyn Error. Also makes use of Context trait for relaying error messages as results.
6340a90 use less boiler plate polling ready - The ready function is much less code and does the exact same thing under the hood.
2efc781 cleanup unused imports
7b5b40c construct close/ping urls outside of loop - These urls do not change once computed, allocating them before the loop reduces unnecessary allocations.
1b606df make options copyable, parse deadline duration
007f5f0 lambda_id is immutable, type alias it as a sharable convenience type
This PR contains a variety of changes I made while building my understanding of the code. I some attempt to keep commits focused on a particular change. While reviewing the code, it will probably be helpful to look at each individual commit.
f9673cf
fully adopt anyhow errors - Standardizes onanyhow::{Error, Result}
instead of mixingstd::io::Result
anddyn Error
. Also makes use ofContext
trait for relaying error messages as results.6340a90
use less boiler plate polling ready - Theready
function is much less code and does the exact same thing under the hood.2efc781
cleanup unused imports7b5b40c
construct close/ping urls outside of loop - These urls do not change once computed, allocating them before the loop reduces unnecessary allocations.1b606df
make options copyable, parse deadline duration007f5f0
lambda_id is immutable, type alias it as a sharable convenience typea397631
Introduces Endpoint, consistent naming, extracts code clumps