From 280e1a81f74837478af529eff02bf5f9795d8f3f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 5 Jul 2022 16:39:10 +0100 Subject: [PATCH] Whoops, fix scales --- federationapi/consumers/receipts.go | 2 +- syncapi/consumers/receipts.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/federationapi/consumers/receipts.go b/federationapi/consumers/receipts.go index b539e103e..2c9d79bcb 100644 --- a/federationapi/consumers/receipts.go +++ b/federationapi/consumers/receipts.go @@ -90,7 +90,7 @@ func (t *OutputReceiptConsumer) onMessage(ctx context.Context, msg *nats.Msg) bo return true } - timestamp, err := strconv.ParseUint(msg.Header.Get("timestamp"), 0, 10) + timestamp, err := strconv.ParseUint(msg.Header.Get("timestamp"), 10, 64) if err != nil { // If the message was invalid, log it and move on to the next message in the stream log.WithError(err).Errorf("EDU output log: message parse failure") diff --git a/syncapi/consumers/receipts.go b/syncapi/consumers/receipts.go index f83dadace..83156cf93 100644 --- a/syncapi/consumers/receipts.go +++ b/syncapi/consumers/receipts.go @@ -87,7 +87,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msg *nats.Ms Type: msg.Header.Get("type"), } - timestamp, err := strconv.ParseUint(msg.Header.Get("timestamp"), 0, 10) + timestamp, err := strconv.ParseUint(msg.Header.Get("timestamp"), 10, 64) if err != nil { // If the message was invalid, log it and move on to the next message in the stream log.WithError(err).Errorf("output log: message parse failure")