!str #16448 Change error to failure
* one API change OverflowStrategy.error -> OverflowStrategy.fail * error is still kept in the internals where we are at the reactive streams level
This commit is contained in:
parent
31497cac9b
commit
01646d10ff
32 changed files with 87 additions and 88 deletions
|
|
@ -31,7 +31,7 @@ class RecipeReduceByKey extends RecipeSpec {
|
|||
// get a stream of word counts
|
||||
val counts: Source[(String, Int)] =
|
||||
countedWords
|
||||
.buffer(MaximumDistinctWords, OverflowStrategy.error)
|
||||
.buffer(MaximumDistinctWords, OverflowStrategy.fail)
|
||||
.mapAsync(identity)
|
||||
//#word-count
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ class RecipeReduceByKey extends RecipeSpec {
|
|||
}
|
||||
}
|
||||
|
||||
reducedValues.buffer(maximumGroupSize, OverflowStrategy.error).mapAsync(identity)
|
||||
reducedValues.buffer(maximumGroupSize, OverflowStrategy.fail).mapAsync(identity)
|
||||
}
|
||||
|
||||
val wordCounts = words.via(reduceByKey(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue