mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 15:03:09 -06:00
Use the event ID as the key for de-dupe
This commit is contained in:
parent
53cd6546d3
commit
b1e9752986
|
|
@ -274,7 +274,7 @@ func eventsToMessages(events []*gomatrixserverlib.Event) ([]*sarama.ProducerMess
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
m.Topic = "clientapiOutput" // TODO: Make this customisable like roomserver is?
|
m.Topic = "clientapiOutput" // TODO: Make this customisable like roomserver is?
|
||||||
m.Key = sarama.StringEncoder("")
|
m.Key = sarama.StringEncoder(e.EventID())
|
||||||
m.Value = sarama.ByteEncoder(value)
|
m.Value = sarama.ByteEncoder(value)
|
||||||
msgs[i] = &m
|
msgs[i] = &m
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue