Skip to content

Commit

Permalink
Polishing based on the review
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayaperumalg committed Dec 16, 2014
1 parent 3640c86 commit 6eb97d5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ class ReceiverTracker(ssc: StreamingContext, skipReceiverLaunch: Boolean = false
logWarning("No prior receiver info")
ReceiverInfo(streamId, "", null, false, "", lastErrorMessage = message, lastError = error)
}
receiverInfo(streamId) = newReceiverInfo
listenerBus.post(StreamingListenerReceiverStopped(receiverInfo(streamId)))
receiverInfo.remove(streamId)
receiverInfo -= streamId
listenerBus.post(StreamingListenerReceiverStopped(newReceiverInfo))
val messageWithError = if (error != null && !error.isEmpty) {
s"$message - $error"
} else {
Expand Down

0 comments on commit 6eb97d5

Please sign in to comment.