Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce
type
, sender
, state_key
and room_id
lengths using byt…
…es rather than codepoints (#338) This effectively reverts the change made in [5f66df0](5f66df0) to bytes instead of codepoints, since Synapse will now enforce the same after matrix-org/synapse#13710. History here is that Synapse originally calculated bytes in Python 2.x, started counting codepoints in Python 3.x pretty much by accident and then the spec was ambiguous after the fact (hence matrix-org/matrix-spec#1001). Rationale is that bytes are probably easier for implementations to manage and less likely to generate huge indexes for client-side databases (especially where limits might exist like LMDB). cc @reivilibre
- Loading branch information