Jonas Platte
ebd812bcda
Add missing semicolons
2021-09-13 19:02:33 +02:00
Devin Ragotzy
318f3186ad
state-res: Replace unwraps with expect or errors
2021-08-10 15:22:47 +02:00
Timo Kösters
3a0ee7740f
state-res: Change BTreeMap/Set to HashMap/Set
2021-08-10 15:22:47 +02:00
Timo Kösters
d970501c85
state-res: Revert calculating the auth chain in ruma
...
In a previous commit I moved the auth chain calculation code to ruma
because I thought I could optimize it by only taking auth chains from
conflicted events instead of all events. It turned out that was wrong
and now I removed that algorithm again (the full auth chains are now
passed in as an argument to state_res::resolve again).
2021-08-10 15:22:47 +02:00
Timo Kösters
17afbabd92
state-res: Calculate auth_events and fix bug when calculating common events
2021-08-10 15:22:46 +02:00
Devin Ragotzy
b8c54d8e2b
state-res: Pass fetch_event closure as owned F not &F
2021-08-10 15:22:46 +02:00
Devin Ragotzy
a4e6cc7c42
state-res: Use closure to fetch unknown events during state-res
...
state-res: Remove event_map arg from all functions
state-res: Remove get_or_load_event helper func and fix resolve docs
2021-08-10 15:22:26 +02:00
Jonas Platte
4dfaad104b
Enable clippy lint str_to_string
2021-07-02 23:02:50 +02:00
Devin Ragotzy
337b1e26ef
misc: Allow exhaustive for non api related structs
2021-06-18 22:44:00 +02:00
Devin Ragotzy
fae5385753
state-res: Make all pub structs non_exhaustive
2021-06-18 20:53:06 +02:00
Devin Ragotzy
ce6fd1e65e
state-res: Use unique over dedup, remove Vec -> BTreeSet conversions
2021-06-17 19:43:21 +02:00
Devin Ragotzy
9d0cdb8c0e
state-res: Make comments consistent and remove nested ifs
2021-05-19 17:25:28 +02:00
Jonas Platte
da6b513788
state-res: Fix test utils
...
Was broken by recent exhaustiveness change.
2021-05-15 21:43:42 +02:00
Jonas Platte
9e9696f091
Re-run cargo fmt
2021-05-15 15:41:23 +02:00
Jonas Platte
60d4ea027f
Use serde_json::Result alias
2021-05-15 15:02:02 +02:00
Jonas Platte
6c167fca38
state-res: Get rid of static mut
2021-05-14 01:40:23 +02:00
Jonas Platte
fe68bf0e07
Clean up json! formatting
2021-05-14 01:13:42 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types
2021-05-14 01:13:17 +02:00
Jonas Platte
9263d0c949
state-res: Switch from log to tracing
2021-05-08 01:02:42 +02:00
Jonas Platte
f58462a002
state-res: Depend on ruma-* subcrates instead of ruma
2021-05-08 00:52:50 +02:00
Jonas Platte
addc67051e
Integrate state-res and rename to ruma-state-res
2021-05-08 00:39:51 +02:00
Jonas Platte
6609829735
Add 'crates/ruma-state-res/' from commit '56bf45c0235701ac6df56993c327d2f97a499ef9'
...
git-subtree-dir: crates/ruma-state-res
git-subtree-mainline: 719433eb5c41fb5b8099481ce7bb0a37931b260f
git-subtree-split: 56bf45c0235701ac6df56993c327d2f97a499ef9
2021-05-08 00:20:05 +02:00