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

Return failed future instead of exception in cassandra async prepare #996

Merged
merged 1 commit into from Dec 15, 2017

Conversation

mosyp
Copy link
Collaborator

@mosyp mosyp commented Dec 12, 2017

Fixes #993

Problem

I've introduced regression in https://github.com/getquill/quill/pull/813/files#diff-aaa78b79914a79908f7b9ab1e17e1e6eR30

Solution

fix it

Checklist

  • Unit test all changes
  • Update README.md if applicable
  • Add [WIP] to the pull request title if it's work in progress
  • Squash commits that aren't meaningful changes
  • Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

.map(_.all.asScala.toList.map(extractor))
}
def executeQuery[T](cql: String, prepare: Prepare = identityPrepare, extractor: Extractor[T] = identityExtractor)(implicit ec: ExecutionContext): Future[List[T]] =
Future(prepare(super.prepare(cql))) flatMap {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you avoid infix syntax? (.flatMap)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

@fwbrasil fwbrasil merged commit 46ed299 into zio:master Dec 15, 2017
@mosyp mosyp deleted the fix-async-regres branch December 17, 2017 12:08
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.

Failed actions of CassandraAsyncContext propagate error to the caller
3 participants