Avoid doubly-nested transition record
This commit is contained in:
parent
9033cd307c
commit
3c0603878f
|
@ -173,13 +173,13 @@
|
||||||
;;---------------------------------------------------------------------------
|
;;---------------------------------------------------------------------------
|
||||||
|
|
||||||
(define (repl-boot user-name)
|
(define (repl-boot user-name)
|
||||||
(transition/no-state
|
(list
|
||||||
(event-relay 'app-event-relay)
|
(event-relay 'app-event-relay)
|
||||||
(spy 'APP)
|
(spy 'APP)
|
||||||
(at-meta-level
|
(at-meta-level
|
||||||
(endpoint #:subscriber (channel-message (channel-stream-name #t (wild)) (wild))
|
(endpoint #:subscriber (channel-message (channel-stream-name #t (wild)) (wild))
|
||||||
#:conversation (channel-message (channel-stream-name _ cname) _)
|
#:conversation (channel-message (channel-stream-name _ cname) _)
|
||||||
#:on-presence (spawn #:debug-name cname #:child (repl-instance user-name cname))))))
|
#:on-presence (spawn #:debug-name cname #:child (repl-instance user-name cname))))))
|
||||||
|
|
||||||
;; (repl-instance InputPort OutputPort InputPort OutputPort)
|
;; (repl-instance InputPort OutputPort InputPort OutputPort)
|
||||||
(struct repl-instance-state (c2s-in ;; used by thread to read input from relay
|
(struct repl-instance-state (c2s-in ;; used by thread to read input from relay
|
||||||
|
|
Loading…
Reference in New Issue