fix: sync topic sequence after server data
This commit is contained in:
@@ -680,6 +680,12 @@ func (t *Topic) handleServerMsg(msg *ServerComMessage) {
|
||||
if msg.Pres != nil {
|
||||
t.handlePresence(msg)
|
||||
} else if msg.Info != nil || msg.Data != nil {
|
||||
if msg.Data != nil && msg.Data.SeqId > t.lastID {
|
||||
t.lastID = msg.Data.SeqId
|
||||
if !msg.Data.Timestamp.IsZero() {
|
||||
t.touched = msg.Data.Timestamp
|
||||
}
|
||||
}
|
||||
if msg.Info != nil && msg.Info.What == "group" {
|
||||
// Group management event published by the HTTP or Kafka admin
|
||||
// interface: update in-memory topic state (cached permissions,
|
||||
|
||||
Reference in New Issue
Block a user