summaryrefslogtreecommitdiff
path: root/timers.go
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-22 14:10:13 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-22 14:10:15 -0400
commitd0a8bacab612ae2ecae3525fb7548f1c5e6ed35d (patch)
treef12982ff0bad14b32f12da0b1417a4111d2676ed /timers.go
parent9ea397861feeefcce9f18947e10aa6cc155ec459 (diff)
Use proto2 instead of proto3
Travis doesn't support proto3.
Diffstat (limited to 'timers.go')
-rw-r--r--timers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/timers.go b/timers.go
index 3a1efa103..f9fe28608 100644
--- a/timers.go
+++ b/timers.go
@@ -12,7 +12,8 @@ func InitTimers() {
switch msg.Payload.(type) {
case *Msg_TimerStart:
payload := msg.GetTimerStart()
- return HandleTimerStart(payload.Id, payload.Interval, payload.Duration)
+ return HandleTimerStart(*payload.Id, *payload.Interval,
+ *payload.Duration)
default:
panic("[timers] Unexpected message " + string(buf))
}
@@ -27,7 +28,7 @@ func HandleTimerStart(id int32, interval bool, duration int32) []byte {
payload, err := proto.Marshal(&Msg{
Payload: &Msg_TimerReady{
TimerReady: &TimerReadyMsg{
- Id: id,
+ Id: &id,
},
},
})