mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-04-11 21:29:11 +02:00
remove int64 -> int conversion as it is not necessary for Sprinting
This commit is contained in:
parent
be46f7abac
commit
771a2b6218
4
event.go
4
event.go
@ -97,11 +97,11 @@ func (evt *Event) Serialize() []byte {
|
||||
ser = append(ser, []byte{'"', ','}...)
|
||||
|
||||
// created_at
|
||||
ser = append(ser, []byte(fmt.Sprintf("%d", int(evt.CreatedAt.Unix())))...)
|
||||
ser = append(ser, []byte(fmt.Sprintf("%d", evt.CreatedAt.Unix()))...)
|
||||
ser = append(ser, ',')
|
||||
|
||||
// kind
|
||||
ser = append(ser, []byte(fmt.Sprintf("%d,", int(evt.Kind)))...)
|
||||
ser = append(ser, []byte(fmt.Sprintf("%d,", evt.Kind))...)
|
||||
|
||||
// tags
|
||||
ser = append(ser, '[')
|
||||
|
Loading…
x
Reference in New Issue
Block a user