diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-23 17:23:50 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-23 17:23:50 -0400 |
commit | 8d1497a40896429191ca864a2da035fcddf286bc (patch) | |
tree | 7b1a40a605c6fc9c5770e82b1d5f592fe90f1d63 /timers.go | |
parent | cb222ceb227f5a7f5307085bcbebfa3cdb049598 (diff) |
Move pubMsg to dispatch
Diffstat (limited to 'timers.go')
-rw-r--r-- | timers.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -61,7 +61,7 @@ func (t *Timer) StartTimer() { if !t.Interval { t.Done = true } - pubMsg(&Msg{ + PubMsg("timers", &Msg{ Payload: &Msg_TimerReady{ TimerReady: &TimerReadyMsg{ Id: &t.Id, @@ -75,9 +75,3 @@ func (t *Timer) StartTimer() { } }() } - -func pubMsg(msg *Msg) { - payload, err := proto.Marshal(msg) - check(err) - Pub("timers", payload) -} |