mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Make logging output for state deletions a bit better
This commit is contained in:
parent
015465d496
commit
9eb4fec33b
2 changed files with 13 additions and 5 deletions
|
@ -210,6 +210,14 @@ func (s StateAtEventAndReferences) Swap(a, b int) {
|
|||
s[a], s[b] = s[b], s[a]
|
||||
}
|
||||
|
||||
func (s StateAtEventAndReferences) EventIDs() string {
|
||||
strs := make([]string, 0, len(s))
|
||||
for _, r := range s {
|
||||
strs = append(strs, r.EventID)
|
||||
}
|
||||
return "[" + strings.Join(strs, " ") + "]"
|
||||
}
|
||||
|
||||
// An Event is a gomatrixserverlib.Event with the numeric event ID attached.
|
||||
// It is when performing bulk event lookup in the database.
|
||||
type Event struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue