dawidwys commented on a change in pull request #7168: [FLINK-6756][DataStream
API] Provide Rich AsyncFunction to Scala API …
URL: https://github.com/apache/flink/pull/7168#discussion_r237783551
##########
File path:
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/AsyncDataStream.scala
##########
@@ -301,4 +287,21 @@ object AsyncDataStream {
orderedWait(input, timeout, timeUnit,
DEFAULT_QUEUE_CAPACITY)(asyncFunction)
}
+
+ private def wrapAsJavaAsyncFunction[IN, OUT: TypeInformation](
+ asyncFunction: AsyncFunction[IN, OUT])
+ : JavaAsyncFunction[IN, OUT] = asyncFunction match {
Review comment:
Add indentation. In scala the guidelines are to format code as follows:
```
private def wrapAsJavaAsyncFunction[IN, OUT: TypeInformation](
asyncFunction: AsyncFunction[IN, OUT])
: JavaAsyncFunction[IN, OUT] = asyncFunction match {
case richAsyncFunction: RichAsyncFunction[IN, OUT] =>
```
so that the colon has the same indentation as the code inside function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services