in projection/src/main/scala/org/apache/pekko/projection/r2dbc/internal/R2dbcOffsetStore.scala [786:797]
def isInflight[Envelope](envelope: Envelope): Boolean = {
createRecordWithOffset(envelope) match {
case Some(recordWithOffset) =>
val pid = recordWithOffset.record.pid
val seqNr = recordWithOffset.record.seqNr
getInflight().get(pid) match {
case Some(`seqNr`) => true
case _ => false
}
case None => true
}
}