-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add new_http_client & fix cosmos_client #274
Conversation
use azure_core::*; | ||
|
||
#[derive(Clone, Debug)] | ||
enum TransportStack { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you would have an HttpClient
or a Pipeline
. May be it can this can be reintroduced in a subsequent pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
@@ -51,52 +46,76 @@ impl CosmosOptions { | |||
} | |||
} | |||
|
|||
/// Create a Pipeline from CosmosOptions | |||
fn new_pipeline_from_options(options: CosmosOptions) -> Pipeline { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I personally like keeping the struct definition and the impl together which would mean moving these functions below the impl
block. That's definitely not a blocker though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with either. I'll change it to be in the impl. Let's change it to a impl when the pipeline stuff gets refactored.
Fix cosmos create_database unable to get pipeline in cosmos e2e tests #273. From Policy Architecture #204, I don't really understand what
TransportStack
is for. This removes it.new_http_client()
to simplify creation, reduceuse statements
and simplify dependenciesBox
in theArc<Box
. It seems to work fine without. Did I miss something?