diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-22 14:10:13 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-22 14:10:15 -0400 |
commit | d0a8bacab612ae2ecae3525fb7548f1c5e6ed35d (patch) | |
tree | f12982ff0bad14b32f12da0b1417a4111d2676ed /timers.go | |
parent | 9ea397861feeefcce9f18947e10aa6cc155ec459 (diff) |
Use proto2 instead of proto3
Travis doesn't support proto3.
Diffstat (limited to 'timers.go')
-rw-r--r-- | timers.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, }, }, }) |