Increase max Server-Sent Events' ID

This commit is contained in:
Deluan 2023-04-04 10:46:57 -04:00
parent 95016f687e
commit bbb9461000
1 changed files with 3 additions and 3 deletions

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
}