Increase max Server-Sent Events' ID
This commit is contained in:
parent
95016f687e
commit
bbb9461000
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue