Skip to content

Commit 66d71b8

Browse files
committed
Merge pull request gearpump#496 from huafengw/fix#493
fix gearpump#493 add implicit sender
2 parents e3bb54e + 798a742 commit 66d71b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/sol/src/main/scala/org/apache/gearpump/streaming/examples/sol/SOLStreamProducer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.apache.gearpump.streaming.task.{StartTime, Task, TaskContext}
2626

2727
class SOLStreamProducer(taskContext : TaskContext, conf: UserConfig) extends Task(taskContext, conf) {
2828
import org.apache.gearpump.streaming.examples.sol.SOLStreamProducer._
29-
import taskContext.{output, self}
29+
import taskContext.output
3030

3131
private val sizeInBytes = conf.getInt(SOLStreamProducer.BYTES_PER_MESSAGE).get
3232
private var messages : Array[String] = null

streaming/src/main/scala/org/apache/gearpump/streaming/task/Task.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ trait TaskInterface {
146146

147147
abstract class Task(taskContext : TaskContext, userConf : UserConfig) extends TaskInterface{
148148

149-
import taskContext.{appId, executorId, taskId, self}
149+
import taskContext.{appId, executorId, taskId}
150150

151151
val LOG: Logger = LogUtil.getLogger(getClass, app = appId, executor = executorId, task = taskId)
152152

153153
protected implicit val system = taskContext.system
154154

155+
implicit val self = taskContext.self
156+
155157
def onStart(startTime : StartTime) : Unit
156158

157159
def onNext(msg : Message) : Unit

0 commit comments

Comments
 (0)