Increase max Server-Sent Events' ID

This commit is contained in:
Deluan 2023-04-04 10:46:57 -04:00 committed by Joe Stump
parent 43f4e8a009
commit ffb50f50f7
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -29,7 +29,7 @@ const (
type (
message struct {
id uint32
id uint64
event string
data string
senderCtx context.Context
@ -202,9 +202,9 @@ func (b *broker) listen() {
defer keepAlive.Stop()
clients := map[client]struct{}{}
var eventId uint32
var eventId uint64
getNextEventId := func() uint32 {
getNextEventId := func() uint64 {
eventId++
return eventId
}