aggregate receipts into single edu; dedup presence; refactor selection limits etc
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
a74461fc9a
commit
d35376a90c
3 changed files with 190 additions and 130 deletions
|
@ -21,16 +21,16 @@ use ruma::{
|
|||
OwnedEventId, ServerName,
|
||||
};
|
||||
use serde_json::value::RawValue as RawJsonValue;
|
||||
use service::{
|
||||
sending::{EDU_LIMIT, PDU_LIMIT},
|
||||
Services,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
services::Services,
|
||||
utils::{self},
|
||||
Ruma,
|
||||
};
|
||||
|
||||
const PDU_LIMIT: usize = 50;
|
||||
const EDU_LIMIT: usize = 100;
|
||||
|
||||
type ResolvedMap = BTreeMap<OwnedEventId, Result<()>>;
|
||||
|
||||
/// # `PUT /_matrix/federation/v1/send/{txnId}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue