Skip to content

Commit ee0044e

Browse files
author
Ray Jenkins
committedSep 28, 2012
Update readme.textile
1 parent 3ff3e54 commit ee0044e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎readme.textile

+5-5
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,21 @@ Most modern Erlang applications are built using the OTP framework, and in partic
218218
class EchoService(ctx : ServiceContext[EchoServiceArgs]) extends Service(ctx) {
219219
val EchoServiceArgs(name) = ctx.args
220220

221-
override def handleCall(from : Pid, request : Any) : Any = {
221+
override def handleCall(tag: (Pid, Reference), request: Any): Any = {
222222
name + " " + request
223-
}
223+
}
224224

225225
override def handleCast(request : Any) {
226226
log.info("Can't echo a cast. %s", request)
227-
}
227+
}
228228

229229
override def handleInfo(request : Any) {
230230
log.info("A wild message appeared. %s, request")
231-
}
231+
}
232232
}
233233

234234
val node = Node("test", cookie)
235-
val pid = node.spawnService[EchoService]("echo", EchoServiceArgs("test_echo"))
235+
val pid = node.spawnService[EchoService, EchoServiceArgs]("echo", EchoServiceArgs("test_echo"))
236236
</code>
237237
</pre>
238238

0 commit comments

Comments
 (0)
Please sign in to comment.