Skip to content

Commit fab14c7

Browse files
committed
minor update.
1 parent 149948b commit fab14c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

streaming/src/main/scala/org/apache/spark/streaming/receiver/ReceiverSupervisorImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private[streaming] class ReceiverSupervisorImpl(
114114

115115
/** Push a single record of received data into block generator. */
116116
def pushSingle(data: Any) {
117-
blockGenerator addData (data)
117+
blockGenerator.addData(data)
118118
}
119119

120120
/** Store an ArrayBuffer of received data as a data block into Spark's memory. */

streaming/src/test/scala/org/apache/spark/streaming/ReceiverSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ReceiverSuite extends FunSuite with Timeouts {
138138
blockGenerator.start()
139139
var count = 0
140140
while(System.currentTimeMillis - startTime < waitTime) {
141-
blockGenerator addData count
141+
blockGenerator.addData(count)
142142
generatedData += count
143143
count += 1
144144
Thread.sleep(10)
@@ -168,7 +168,7 @@ class ReceiverSuite extends FunSuite with Timeouts {
168168
blockGenerator.start()
169169
var count = 0
170170
while(System.currentTimeMillis - startTime < waitTime) {
171-
blockGenerator addData count
171+
blockGenerator.addData(count)
172172
generatedData += count
173173
count += 1
174174
Thread.sleep(1)

0 commit comments

Comments
 (0)