Permalink
Browse files

不要なrecoverを除去

  • Loading branch information...
matsu-chara committed Dec 10, 2015
1 parent fc8d1c6 commit 533e237a5519c06a1524a5457688796cc695aa3e
Showing with 6 additions and 6 deletions.
  1. +4 −4 main.pony
  2. +1 −1 publisher.pony
  3. +1 −1 subscriber.pony
@@ -2,10 +2,10 @@ actor Main
new create(env:Env) =>
let server = Server(env)
let p1: Publisher val = recover Publisher("niconare") end
let p2: Publisher val = recover Publisher("nicolun") end
let s1: Subscriber val = recover Subscriber("user1", env) end
let s2: Subscriber val = recover Subscriber("user2", env) end
let p1 = Publisher("niconare")
let p2 = Publisher("nicolun")
let s1 = Subscriber("user1", env)
let s2 = Subscriber("user2", env)
p1.register(server)
p2.register(server)
@@ -1,7 +1,7 @@
class Publisher
let name: String
new create(name': String) =>
new val create(name': String) =>
name = name'
fun val register(server: Server) =>
@@ -2,7 +2,7 @@ class Subscriber
let name: String
let _env: Env
new create(name': String, env': Env) =>
new val create(name': String, env': Env) =>
name = name'
_env = env'

0 comments on commit 533e237

Please sign in to comment.