Commit graph

69 commits

Author SHA1 Message Date
naskya
9f16c00f0c
chore (backend-rs): use Arc for antenna cache 2024-06-09 01:13:05 +09:00
naskya
00e9f0ad48
chore (backend-rs, minor): fix code style 2024-06-07 22:46:46 +09:00
naskya
4390dfcbfb
perf (backend): store antenna cache in memory 2024-06-06 17:10:39 +09:00
naskya
97765209a2
chore (backend-rs): organize imports 2024-06-06 17:10:39 +09:00
naskya
642c4cb2c7
refactor (backend-rs): remove strum derives 2024-06-06 17:10:39 +09:00
naskya
e9d31687f9
chore (backend-rs): remove unused derive 2024-06-06 17:10:38 +09:00
naskya
b111e63953
chore (backend-rs): prefer unwrap_or_else 2024-06-06 17:10:35 +09:00
naskya
95b860e820
chore (backend-rs): fetch_meta -> local_server_info 2024-06-06 07:30:13 +09:00
naskya
28cfaad330
perf (backend): always use cache in fetch_meta 2024-06-05 12:30:05 +09:00
naskya
e87dae896b
fix (backend-rs): use the exact same time for id and created_at 2024-06-03 08:23:58 +09:00
naskya
98d7eac51b
chore (backend-rs): use sea_orm::prelude 2024-06-03 08:20:39 +09:00
naskya
9ad284bd67
chore (backend-rs): rename partial note structs 2024-05-31 21:42:59 +09:00
naskya
2e44357665
chore (backend-rs): remove unneeded serde derives 2024-05-31 21:28:53 +09:00
naskya
890ca846d0
chore (backend-rs): documents, organize exports, typo fixes 2024-05-30 07:07:01 +09:00
naskya
27de1ddb70
chore (backend-rs): add comments 2024-05-28 19:42:52 +09:00
naskya
35f30d9895
chore (backend-rs): make internal functions/modules private 2024-05-24 22:18:32 +09:00
naskya
9c60e8ff8b
chore (backend-rs): address cargo doc warnings 2024-05-24 01:19:17 +09:00
naskya
81e633eec3
chore (backend-rs): antenna::add_new_note -> antenna::process_new_note 2024-05-23 20:49:49 +09:00
naskya
85d44aaa2d
chore (backend-rs): remove 'Err' suffix from error variants
https://rust-lang.github.io/rust-clippy/master/index.html#/enum_variant_names
2024-05-23 20:49:49 +09:00
naskya
55ed733df8
chore (backend): remove '_enum' suffix from enum types 2024-05-23 20:49:49 +09:00
naskya
0c0e6a26fa
test (backend-rs): add parse_nodeinfo_2_1 testcase 2024-05-21 23:18:59 +09:00
naskya
b24530065e
fix (backend-rs): wrong unwrap_or usage 2024-05-21 22:57:33 +09:00
naskya
da9fe83986
perf (backend-rs): reduce note copy operations 2024-05-21 16:12:11 +09:00
naskya
1f082bfb56
chore (macro-rs): ts_only_warn -> ts_export 2024-05-21 16:12:11 +09:00
naskya
4bb6f6e0e3
chore (backend-rs): cleanup 2024-05-21 16:12:11 +09:00
naskya
f1e3395783
fix (backend-rs): active users count in nodeinfo (close #10935) 2024-05-21 16:12:07 +09:00
naskya
84c374da20
chore (backend-rs): cleanup 2024-05-20 19:23:54 +09:00
naskya
8174d646f9
fix (backend): add back timezone 2024-05-19 19:15:58 +09:00
naskya
c73ce2ff39
chore (backend-rs): don't iterate the same process 2024-05-19 12:49:45 +09:00
naskya
797c768f24
feat (backend-rs): add Mastodon push notification type 2024-05-19 12:19:58 +09:00
naskya
abc9d58f7c
refactor (backend-rs): use bb8 connection pool for Redis 2024-05-18 13:20:47 +09:00
naskya
61562a0943
refactor (backend-rs): use async redis commands 2024-05-18 13:20:43 +09:00
naskya
2fdd165144
chore (backend-rs): add TODO comment 2024-05-17 18:12:27 +09:00
naskya
ffa08748d0
refactor (backend): don't check word mute twice 2024-05-17 17:59:45 +09:00
naskya
5e53f9a8cf
refactor (backend): port check-hit-antenna to backend-rs 2024-05-17 17:59:45 +09:00
naskya
41b32c5535 refactor (backend): port push notification sender to backend-rs 2024-05-15 22:19:58 +00:00
naskya
d8e1ab63c0
refactor: port system information checker to backend-rs
network stat is removed because it might be inaccurate and/or
it should be monitored by other system tools, but it may be added back
later if it is wanted
2024-05-15 16:26:46 +09:00
naskya
cda31d3dc7
Revert "refactor (backend): port publishNotesStream to backend-rs"
This reverts commit 5382dc5da8.

It turns out this sends an inccorect time info to the stream
since JavaScript's Date object doesn't have timezone info

I'll revisit this in the future
2024-05-08 06:08:26 +09:00
naskya
5382dc5da8
refactor (backend): port publishNotesStream to backend-rs 2024-05-08 02:15:07 +09:00
naskya
dd74eabae1
refactor (backend): port nodeinfo fetcher to backend-rs 2024-05-06 08:12:21 +09:00
naskya
711618b42c
test (backend-rs): add tests for nodeinfo (de)serialization 2024-05-06 05:20:13 +09:00
naskya
510207b101
refactor (backend-rs): separate nodeinfo generator and schema 2024-05-06 04:23:38 +09:00
naskya
49825853c1
refactor (backend): port nodeinfo generator to backend-rs 2024-05-06 03:01:55 +09:00
naskya
38cd4bafde
refactor (backend): port publishGroupMessagingStream to backend-rs 2024-04-27 08:36:12 +09:00
naskya
37cf4f8361
chore (backend-rs): tweak logger config 2024-04-26 13:51:28 +09:00
naskya
d40db1ee7e
refactor (backend): port publishBroadcastStream to backend-rs 2024-04-26 13:30:13 +09:00
naskya
0caba566e6
refactor (backend): port publishMessagingIndexStream to backend-rs 2024-04-26 13:11:11 +09:00
naskya
42f704b515
chore (backend-rs): remove whitespaces 2024-04-26 06:51:52 +09:00
naskya
8534154792
chore (backend-rs): add comment 2024-04-26 06:30:30 +09:00
naskya
1cfe3bfb73
refactor (backend): port publishChannelStream to backend-rs 2024-04-26 06:16:51 +09:00