mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-05 09:53:18 +03:00
Increase max Server-Sent Events' ID
This commit is contained in:
parent
95016f687e
commit
bbb9461000
@ -29,7 +29,7 @@ const (
|
|||||||
|
|
||||||
type (
|
type (
|
||||||
message struct {
|
message struct {
|
||||||
id uint32
|
id uint64
|
||||||
event string
|
event string
|
||||||
data string
|
data string
|
||||||
senderCtx context.Context
|
senderCtx context.Context
|
||||||
@ -202,9 +202,9 @@ func (b *broker) listen() {
|
|||||||
defer keepAlive.Stop()
|
defer keepAlive.Stop()
|
||||||
|
|
||||||
clients := map[client]struct{}{}
|
clients := map[client]struct{}{}
|
||||||
var eventId uint32
|
var eventId uint64
|
||||||
|
|
||||||
getNextEventId := func() uint32 {
|
getNextEventId := func() uint64 {
|
||||||
eventId++
|
eventId++
|
||||||
return eventId
|
return eventId
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user