diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-24 13:24:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 13:24:17 +0100 |
commit | ac11fcbbb8ccfeb4c72b5aae9faef28469109277 (patch) | |
tree | e35d6b0e50558eb0d83389bb40f8179c4c254aab /scripts | |
parent | Mark the shadow_banned column as boolean in synapse_port_db. (#8386) (diff) | |
download | synapse-ac11fcbbb8ccfeb4c72b5aae9faef28469109277.tar.xz |
Add EventStreamPosition type (#8388)
The idea is to remove some of the places we pass around `int`, where it can represent one of two things: 1. the position of an event in the stream; or 2. a token that partitions the stream, used as part of the stream tokens. The valid operations are then: 1. did a position happen before or after a token; 2. get all events that happened before or after a token; and 3. get all events between two tokens. (Note that we don't want to allow other operations as we want to change the tokens to be vector clocks rather than simple ints)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions