diff options
Diffstat (limited to 'federationapi/producers/syncapi.go')
-rw-r--r-- | federationapi/producers/syncapi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/producers/syncapi.go b/federationapi/producers/syncapi.go index e371baaa..43dd08dd 100644 --- a/federationapi/producers/syncapi.go +++ b/federationapi/producers/syncapi.go @@ -53,7 +53,7 @@ func (p *SyncAPIProducer) SendReceipt( m.Header.Set(jetstream.RoomID, roomID) m.Header.Set(jetstream.EventID, eventID) m.Header.Set("type", receiptType) - m.Header.Set("timestamp", strconv.Itoa(int(timestamp))) + m.Header.Set("timestamp", fmt.Sprintf("%d", timestamp)) log.WithFields(log.Fields{}).Tracef("Producing to topic '%s'", p.TopicReceiptEvent) _, err := p.JetStream.PublishMsg(m, nats.Context(ctx)) |