Skip to content

Commit

Permalink
Merge pull request #13 from RelationalAI/ag-get-stream
Browse files Browse the repository at this point in the history
Exposes get_object_stream using an AsyncRead interface
  • Loading branch information
andrebsguedes authored Feb 8, 2024
2 parents a6a63d3 + 985a521 commit 8d7bf3d
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 13 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ crate-type = ["cdylib"]

[dependencies]
tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros", "signal", "time"] }
tokio-util = { version = "0.7", default-features = false, features = ["io"] }
bytes = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) enum ErrorReason {
Timeout
}

fn backoff_duration_for_retry(retries: usize, meta: &ConfigMeta) -> Duration {
pub(crate) fn backoff_duration_for_retry(retries: usize, meta: &ConfigMeta) -> Duration {
// We try to use the same settings as the object_store backoff but the implementation is
// different so this is best effort.
let mut backoff = backoff::ExponentialBackoff {
Expand Down
Loading

0 comments on commit 8d7bf3d

Please sign in to comment.