summaryrefslogtreecommitdiff
path: root/timers.go
diff options
context:
space:
mode:
Diffstat (limited to 'timers.go')
-rw-r--r--timers.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/timers.go b/timers.go
index 6a395adac..91aaf1806 100644
--- a/timers.go
+++ b/timers.go
@@ -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)
-}