Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Or committed May 15, 2015
1 parent 074c00b commit 1af0b0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ private[streaming] class FlumePollingInputDStream[T: ClassTag](
storageLevel: StorageLevel
) extends ReceiverInputDStream[SparkFlumeEvent](_ssc) {

protected[streaming] override val customScopeName: Option[String] = Some(s"flume polling stream [$id]")
protected[streaming] override val customScopeName: Option[String] = {
Some(s"flume polling stream [$id]")
}

override def getReceiver(): Receiver[SparkFlumeEvent] = {
new FlumePollingReceiver(addresses, maxBatchSize, parallelism, storageLevel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class DirectKafkaInputDStream[
val maxRetries = context.sparkContext.getConf.getInt(
"spark.streaming.kafka.maxRetries", 1)

protected[streaming] override val customScopeName: Option[String] = Some(s"kafka direct stream [$id]")
protected[streaming] override val customScopeName: Option[String] = {
Some(s"kafka direct stream [$id]")
}

protected[streaming] override val checkpointData =
new DirectKafkaInputDStreamCheckpointData
Expand Down

0 comments on commit 1af0b0e

Please sign in to comment.