pjfanning opened a new pull request, #128:
URL: https://github.com/apache/incubator-pekko-connectors/pull/128
* play-json is just a test dependency so seems ok to use an RC jar (no
non-RC jar supports Scala 3)
* still fails to compile - 2 exceptions like this:
```
[error] -- [E007] Type Mismatch Error:
/Users/pj.fanning/code/incubator-pekko-connectors/couchbase/src/main/scala/org/apache/pekko/stream/connectors/couchbase/scaladsl/CouchbaseFlow.scala:118:27
[error] 104 | Flow
[error] 105 | .fromMaterializer { (materializer, _) =>
[error] 106 | val session =
CouchbaseSessionRegistry(materializer.system).sessionFor(sessionSettings,
bucketName)
[error] 107 | Flow[T]
[error] 108 | .mapAsync(writeSettings.parallelism)(doc => {
[error] 109 | implicit val executor: ExecutionContext =
materializer.system.dispatcher
[error] 110 | session
[error] 111 | .flatMap(_.upsertDoc(doc, writeSettings))
[error] 112 | .map(_ => CouchbaseWriteSuccess(doc))
[error] 113 | .recover {
[error] 114 | case exception => CouchbaseWriteFailure(doc,
exception)
[error] 115 | }
[error] 116 | })
[error] 117 | }
[error] 118 | .mapMaterializedValue(_ => NotUsed)
[error] | ^
[error] |Found: org.apache.pekko.stream.scaladsl.Flow[T,
[error] |
org.apache.pekko.stream.connectors.couchbase.CouchbaseWriteResult[? >: T <: T]
[error] | ,
[error] |concurrent.Future[org.apache.pekko.NotUsed]]#ReprMat[
[error] |
org.apache.pekko.stream.connectors.couchbase.CouchbaseWriteResult[? >: T <: T]
[error] | ,
[error] |org.apache.pekko.NotUsed.type]
[error] |Required: org.apache.pekko.stream.scaladsl.Flow[T,
[error] |
org.apache.pekko.stream.connectors.couchbase.CouchbaseWriteResult[T],
[error] | org.apache.pekko.NotUsed]
[error] |
[error] |where: T is a type in method upsertDocWithResult with bounds
<: com.couchbase².client.java.document.Document[?]
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]