From d0a8bacab612ae2ecae3525fb7548f1c5e6ed35d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 May 2018 14:10:13 -0400 Subject: Use proto2 instead of proto3 Travis doesn't support proto3. --- timers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'timers.go') 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, }, }, }) -- cgit v1.2.3