Skip to content

Commit

Permalink
Solr: partition changes the order.
Browse files Browse the repository at this point in the history
Solr: partition changes the order. Use instead span
  • Loading branch information
giena authored Dec 9, 2018
1 parent 58c3ea5 commit 8effc50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private[solr] final class SolrFlowLogic[T, C](
def send(toSend: Seq[IncomingMessage[T, C]]): UpdateResponse = {
val operation = toSend.head.operation
//Just take a subset of this operation
val (current, remaining) = toSend.partition { m =>
val (current, remaining) = toSend.span { m =>
m.operation == operation
}
//send this subset
Expand Down

0 comments on commit 8effc50

Please sign in to comment.