mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Hydrate destination queues at startup (#1179)
* Hydrate destination queues at startup * Review comments
This commit is contained in:
parent
9dffeb9b67
commit
1773fd84b7
7 changed files with 89 additions and 1 deletions
|
@ -270,3 +270,11 @@ func (d *Database) GetPendingPDUCount(
|
|||
) (int64, error) {
|
||||
return d.selectQueuePDUCount(ctx, nil, serverName)
|
||||
}
|
||||
|
||||
// GetPendingServerNames returns the server names that have PDUs
|
||||
// waiting to be sent.
|
||||
func (d *Database) GetPendingServerNames(
|
||||
ctx context.Context,
|
||||
) ([]gomatrixserverlib.ServerName, error) {
|
||||
return d.selectQueueServerNames(ctx, nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue