1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

17 Commits

Author SHA1 Message Date
wdvxdr
31cdd33767
internal/btree: remove lock file after testing 2022-02-19 20:19:17 +08:00
github-actions[bot]
ee749a45fc ci(chore): Fix stylings 2022-02-19 10:56:44 +00:00
wdvxdr
e6904d8dde
internal/btree: implement file lock
For #1366
2022-02-19 18:55:28 +08:00
wdvxdr
1f55bde728
ci: make lint happy 2022-01-30 16:00:30 +08:00
wdvxdr
e8bf497022
fix: fix btree iterate for empty db 2022-01-30 15:50:02 +08:00
wdvxdr
6c7445772c
fix: fix btree iterate 2022-01-30 15:35:14 +08:00
wdvxdr
d2a58014bc
feat: support foreach in btree 2022-01-30 14:52:29 +08:00
wdvxdr
b98f75ccab
style: run gofumpt 2021-12-29 14:04:51 +08:00
wdvxdr
0b04ec9adb
feat(cache): implement Delete 2021-10-08 21:41:47 +08:00
wdvxdr
63e950bb83
feat(internal/btree): use md5 key instead of sha1
image/video cache uses md5 key, this commit will reduce 4 used bytes in db
2021-10-03 22:32:11 +08:00
wdvxdr
7c4be95c19
feat: store cache with disk btree backend 2021-09-28 22:23:33 +08:00
wdvxdr
4da6584f10
feat: unified writing/reading table
These changes table reading/writing to single read/write operation,
and layout to machine byteorder, so db file will be unsupported with
wrong byteorder.
2021-09-28 16:44:45 +08:00
wdvxdr
d620fce1ae
style: nolint on (*btree.Btree).insertTopLevel 2021-09-28 15:58:30 +08:00
wdvxdr
83b4206b15
fix: wrong sha1 cmp
reported by staticcheck.
2021-09-28 15:51:35 +08:00
wdvxdr
2927c2214f
feat: optimize btree reading/writing 2021-09-28 15:33:33 +08:00
wdvxdr
4625c785dd
fix: make linter happy in internal/btree 2021-09-28 10:48:19 +08:00
wdvxdr
f767213681
feat: init disk-based btree impl 2021-09-27 22:44:45 +08:00