Continuing refactor

This commit is contained in:
Igor Katson 2023-11-25 00:24:32 +00:00
parent 73e41ba7d5
commit 17b243921d
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
11 changed files with 395 additions and 64 deletions

22
TODO.md
View file

@ -5,23 +5,25 @@
- [x] tracing instead of logging. Debugging peers: RUST_LOG=[{peer=.*}]=debug
test-log for tests
- [x] reopen read only is bugged
- [ ] initializing/checking
- [ ] blocks the whole process. Need to break it up. On slower devices (rpi) just hangs for a good while
- [ ] checking torrents should be visible right away
- [x] initializing/checking
- [x] blocks the whole process. Need to break it up. On slower devices (rpi) just hangs for a good while
- [x] checking torrents should be visible right away
- [ ] server persistence
- [ ] it would be nice to restart the server and keep the state
- [ ] torrent actions
- [ ] pause/unpause
- [ ] remove including from disk
- [x] torrent actions
- [x] pause/unpause
- [x] remove including from disk
- [ ] DHT
- [ ] for torrents with a few seeds might be cool to re-query DHT once in a while
- [ ] it's sending many requests now way too fast, locks up Mac OS UI annoyingly
- [x] it's sending many requests now way too fast, locks up Mac OS UI annoyingly
someday:
- [ ] cancellation from the client-side for the lib (i.e. stop the torrent manager)
refactor:
- [ ] where are peers stored
- [ ] http api pause/unpause etc
- [ ] when a live torrent fails writing to disk, it should transition to error state
- [x] where are peers stored
- [x] http api pause/unpause etc
- [ ] when a live torrent fails writing to disk, it should transition to error state
- [ ] something is wrong when unpausing - can't finish. Recalculate needed/have from chunk tracker.
- [ ] silence this: WARN torrent{id=0}:external_peer_adder: librqbit::spawn_utils: finished with error: no longer live