mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-10 16:33:11 -06:00
Comment on the purpose of the latestEventsUpdater
This commit is contained in:
parent
89ee9da2ec
commit
3931af3b80
|
|
@ -73,6 +73,10 @@ func updateLatestEvents(
|
|||
return u.doUpdateLatestEvents()
|
||||
}
|
||||
|
||||
// latestEventsUpdater tracks the state used to update the latest events in the
|
||||
// room. It mostly just ferries state between the various function calls.
|
||||
// The state could be passed using function arguments, but it becomes impractical
|
||||
// when there are so many variables to pass around.
|
||||
type latestEventsUpdater struct {
|
||||
db RoomEventDatabase
|
||||
updater types.RoomRecentEventsUpdater
|
||||
|
|
|
|||
Loading…
Reference in a new issue