Skip to content
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

Last into_future #677

Merged
merged 5 commits into from
Mar 4, 2022
Merged

Last into_future #677

merged 5 commits into from
Mar 4, 2022

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Mar 4, 2022

Finishes the work started in #510 moving to a builder style into_future pattern.

This also completes #290 moving all operations in Cosmos over to the pipeline architecture.

@rylev rylev requested a review from yoshuawuyts March 4, 2022 08:59
@rylev rylev changed the title Last into future Last into _future Mar 4, 2022
@rylev rylev changed the title Last into _future Last into_future Mar 4, 2022
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Had one question, but other than that this looks good!

Comment on lines -11 to -21
impl Request {
fn new(uri: Uri, method: Method, headers: HeaderMap, body: Body) -> Self {
Self {
uri,
method,
headers,
body,
}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, it took me a sec to realize this had just been moved to core/src/request.rs. That seems good.

Comment on lines -21 to -22
const AZURE_VERSION: &str = "2018-12-31";

Copy link
Contributor

Choose a reason for hiding this comment

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

Where did this go? Has this been replaced by something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is done in the telemetry_policy now (not a part of this PR). This can be removed since now everything goes through the pipeline and the telemetry policy will be used.

@rylev rylev merged commit 6945d23 into Azure:main Mar 4, 2022
@rylev rylev deleted the last-into-future branch March 4, 2022 12:02
@cataggar cataggar mentioned this pull request Jun 14, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants