You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "nvollmar (via GitHub)" <gi...@apache.org> on 2023/11/07 10:26:55 UTC

Re: [PR] Fixes option pattern matches [incubator-pekko-persistence-cassandra]

nvollmar commented on code in PR #28:
URL: https://github.com/apache/incubator-pekko-persistence-cassandra/pull/28#discussion_r1384701974


##########
core/src/main/scala/akka/persistence/cassandra/journal/CassandraJournal.scala:
##########
@@ -800,9 +800,8 @@ import akka.stream.scaladsl.Source
           Extractors.optionalTaggedPersistentRepr(eventDeserializer, serialization))
         .mapAsync(1) { t =>
           t.tagged match {
-            case OptionVal.Some(tpr) =>
-              tr.sendMissingTagWrite(tp)(tpr)
             case OptionVal.None => FutureDone // no tags, skip
+            case tpr            => tr.sendMissingTagWrite(tp)(tpr.x)

Review Comment:
   That would still cause the pattern match warning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org