Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12382#discussion_r59675641
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/streaming/RecoverableNetworkWordCount.scala
 ---
    @@ -116,7 +116,7 @@ object RecoverableNetworkWordCount {
         val lines = ssc.socketTextStream(ip, port)
         val words = lines.flatMap(_.split(" "))
         val wordCounts = words.map(x => (x, 1)).reduceByKey(_ + _)
    -    wordCounts.foreachRDD((rdd: RDD[(String, Int)], time: Time) => {
    +    wordCounts.foreachRDD { (rdd: RDD[(String, Int)], time: Time) =>
    --- End diff --
    
    While we're here, can this just be `(rdd, time) =>`? and likewise in the 
following file, maybe others


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to