~edwargix/tallyard

2d5e5b2d958b645e9f754586a4c2194364435a54 — David Florness 5 years ago 05432f4
Allow listing peers in the bulletin repl
1 files changed, 5 insertions(+), 2 deletions(-)

M bulletin.rkt
M bulletin.rkt => bulletin.rkt +5 -2
@@ 214,8 214,11 @@
                                     (λ (l)
                                       (cons cand l))))]
                    [else (displayln "cannot add that")])]
            ['list
             (displayln (hash-ref election->candidates election))]
            ['list (match (read sp)
                     ['cands
                      (displayln (hash-ref election->candidates election))]
                     ['peers
                      (displayln _peers)])]
            ['set (match (read sp)
                    ['election (let ([election (read sp)])
                                 (election-set! election))]