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

AWSClient.send() functions don't throw errors so don't mark them as if they do #121

Merged
merged 1 commit into from
Sep 14, 2019

Conversation

adam-fowler
Copy link
Member

This will simplify using the library a little

@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #121 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #121   +/-   ##
=======================================
  Coverage   64.82%   64.82%           
=======================================
  Files          36       36           
  Lines        6254     6254           
=======================================
  Hits         4054     4054           
  Misses       2200     2200
Impacted Files Coverage Δ
Sources/AWSSDKSwiftCore/AWSClient.swift 56.81% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e415e22...a71d452. Read the comment docs.

@@ -151,7 +151,7 @@ extension AWSClient {
}
}

public func send<Output: AWSShape>(operation operationName: String, path: String, httpMethod: String) throws -> Future<Output> {
public func send<Output: AWSShape>(operation operationName: String, path: String, httpMethod: String) -> Future<Output> {

return signer.manageCredential().thenThrowing { _ in
Copy link
Member

Choose a reason for hiding this comment

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

Great save! thenThrowing, renamed to flatMapThrowing in NIO2, does not throw, but returns a failed future on error 🎉

@adam-fowler adam-fowler merged commit d0289a5 into soto-project:master Sep 14, 2019
@adam-fowler adam-fowler deleted the no-throwing branch September 14, 2019 08:57
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