strawberry
87d6a17f0a
fix all the warnings!!!! (0 clippy and rustc warnings now)
...
too many changes to list, codebase significantly better than it was a few weeks ago though
Signed-off-by: strawberry <june@girlboss.ceo>
2023-11-29 21:36:02 -05:00
strawberry
54a3f47851
fix every clippy warning possible, remove io_uring as default feature
...
this project's codebase is so horrendous, im shocked that no one has ran
clippy at all. it had ~200 total lint warnings, some with performance
issues and unsoundness, and the rest just very ugly codebase. i have sat
down and fixed as many of these as possible and i am exhausted.
i haven't fixed some extremely complex ones, but i brought it down from
~200 to ~30.
i have also removed io_uring as a default feature due to it falling
under the same category as linux eBPF: major kernel attack surface for
minimal performance gains. this also makes it impossible to cross-compile
from macOS to Linux because io_uring does not exist in Darwin land.
there are far better ways to achieve better performance than io_uring on
the codebase level.
Signed-off-by: strawberry <june@girlboss.ceo>
2023-11-27 00:50:55 -05:00
tezlm
b30884c7ac
reply to messages
2023-11-26 22:14:59 -05:00
strawberry
2dc1c1fdcb
fix clippy performance and sus warnings, remove 1 unwrap, forgot to increment db version
...
Signed-off-by: strawberry <strawberry@pupbrain.dev>
2023-11-26 22:14:43 -05:00
AndSDev
d13e3827ce
feat: send push notification on invite to invited user and etc
2023-11-25 20:28:25 -05:00
strawberry
6958c720d0
make pdu stuff async, remove unnecessary db version check
...
Signed-off-by: strawberry <strawberry@pupbrain.dev>
2023-11-25 18:29:38 -05:00
Val Lorentz
d092820699
Fetch server keys concurrently
...
This speeds up handling of /_matrix/federation/v1/send/:transaction_id
when more than one event contains unknown keys.
In particular, when receiving multiple PDUs with dead servers in their
auth chain, timeouts of each server accumulate and can make handling of
incoming requests take several minutes, to the point the client closes
the connection (eg. matrix.org has a 2 minute timeout), causing new
events to be dropped eventually.
2023-11-25 11:38:28 -05:00
Timo Kösters
606b25b9e7
improvement: more forgiving admin command syntax
2023-08-10 17:26:55 +02:00
Timo Kösters
bac13d08ae
fix: cache invalidation
2023-07-02 22:50:50 +02:00
Timo Kösters
be877ef719
Improve sync performance with more caching and wrapping things in Arcs to avoid copies
2023-06-27 13:15:11 +02:00
Timo Kösters
72eb1972c1
Add relations endpoints, edits and threads work now
2023-06-26 12:38:51 +02:00
Timo Kösters
49a0f3a60d
fix: /context for element android. start and end must be set even with limit=0
2023-06-26 08:33:31 +02:00
Timo Kösters
c7e0ea525a
feat: WIP relationships and threads
2023-06-25 19:40:33 +02:00
Timo Kösters
1f1444da8c
Merge branch 'pushrules' into 'next'
...
Improvements to pushrules endpoints
Closes #316
See merge request famedly/conduit!461
2023-05-21 10:41:31 +00:00
Jonathan Flueren
f5e3b0e2dd
Recognize admin commands without : after tag
...
Very useful since many Matrix clients don't insert : after user tags
2023-05-15 19:25:57 +00:00
Kévin Commaille
f53ecaa97d
Bump Ruma
2023-03-18 15:03:56 +01:00
Timo Kösters
eae0989c40
fix: refactor backfill and add support for search
2023-03-13 10:39:17 +01:00
Timo Kösters
17a6431f5f
fix: make backfilled events reachable
2023-03-13 10:39:17 +01:00
Timo Kösters
7bdd9660aa
feat: ask for backfill
2023-03-13 10:39:17 +01:00
Timo Kösters
f95dd4521c
Merge branch 'validate-state-of-admins-room' into 'next'
...
Validate PDU in admins room
See merge request famedly/conduit!382
2023-01-24 13:46:49 +00:00
Nyaaori
c86313d4fa
chore: code cleanup
...
https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
2022-12-21 10:42:12 +01:00
AndSDev
e923f63c49
fix(service/rooms/timeline): fix validating for non-joined members
2022-10-14 14:45:05 +03:00
AndSDev
d755a96c2c
refactor(service/rooms/timeline): add cache for server_name
2022-10-13 11:19:51 +00:00
AndSDev
76f81ac201
feat(db/rooms): disable banning for last user and conduit user in admins room
2022-10-13 14:15:23 +03:00
AndSDev
912491cb28
style(db/rooms): refactor admin room pdu validating
2022-10-13 14:04:26 +03:00
AndSDev
da2dbd2877
feat(db/rooms): disable leaving from admin room for last user
2022-10-13 13:09:26 +03:00
AndSDev
c67f95ebff
feat(db/rooms): disable leaving from admin room for conduit user
2022-10-13 13:01:18 +03:00
AndSDev
3a8321f9ad
feat(db/rooms): encryption is not allowed in the admins room
2022-10-13 12:50:23 +03:00
Nyaaori
f430b87459
cargo clippy
2022-10-10 14:09:11 +02:00
Timo Kösters
076e9810ba
cargo fix
2022-10-10 14:02:04 +02:00
Timo Kösters
6b131202b9
Bump ruma
2022-10-10 14:02:04 +02:00
Timo Kösters
7822a385bb
cargo fmt
2022-10-10 14:02:02 +02:00
Timo Kösters
d5b4754cf4
0 errors left!
2022-10-10 14:02:02 +02:00
Timo Kösters
f47a5cd5d5
cargo fix
2022-10-10 14:02:01 +02:00
Timo Kösters
a4637e2ba1
cargo fmt
2022-10-10 14:02:01 +02:00
Timo Kösters
33a2b2b772
37 errors left
2022-10-10 14:02:01 +02:00
Timo Kösters
44fe6d1554
127 errors left
2022-10-10 14:02:00 +02:00
Timo Kösters
cff52d7ebb
messing around with arcs
2022-10-10 14:02:00 +02:00
Timo Kösters
face766e0f
messing with trait objects
2022-10-10 14:02:00 +02:00
Timo Kösters
8708cd3b63
431 errors left
2022-10-10 14:02:00 +02:00
Timo Kösters
bd8b616ca0
Fixed more compile time errors
2022-10-10 13:54:00 +02:00
Timo Kösters
057f8364cc
fix: some compile time errors
...
Only 174 errors left!
2022-10-10 13:25:01 +02:00
Timo Kösters
f56424bc8d
Refactor appservices, pusher, timeline, transactionids, users
2022-10-10 13:00:53 +02:00
Nyaaori
01bf348811
refactor: prepare for appservices, pusher, timeline, transactionids, and users
2022-10-10 13:00:06 +02:00
Nyaaori
bea5d1e0d8
refactor: prepare database/key_value/rooms/timeline.rs from service/rooms/timeline/mod.rs
2022-10-10 12:56:13 +02:00
Nyaaori
e8b33e8c5a
refactor: prepare service/rooms/timeline/data.rs from service/rooms/timeline/mod.rs
2022-10-10 12:56:13 +02:00
Timo Kösters
b0029c49b9
refactor: work on search
2022-10-10 10:46:39 +02:00
Timo Kösters
dcdbcc0851
refactor: event handling code
2022-08-15 17:12:22 +02:00