-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Torrent Checker
refactoring
#7286
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a0c944
to
28e21d3
Compare
Thanks for this, as someone who has spent some time in this part of code, i had seen lots of issues there. Not cosmetic-wise but flow-wise as well. Sorry can't provide an actual feedback it has been a long while, but i appreciate the bravery. I hope it can motive :) |
@hbiyik thank you for your support! It's quite motivating! |
52e5640
to
adb9d33
Compare
kozlovsky
reviewed
Feb 1, 2023
src/tribler/core/components/torrent_checker/torrent_checker/torrentchecker_session.py
Outdated
Show resolved
Hide resolved
4c6c3a7
to
41b4634
Compare
kozlovsky
reviewed
Feb 1, 2023
src/tribler/core/components/libtorrent/download_manager/dht_health_manager.py
Outdated
Show resolved
Hide resolved
kozlovsky
reviewed
Feb 1, 2023
src/tribler/core/components/torrent_checker/torrent_checker/torrentchecker_session.py
Outdated
Show resolved
Hide resolved
…ke it clear that it is not always updates DB
…orrents are not loaded from the DB if a new health info was added to TorrentChecker._torrents_checked)
…rror to avoid returning None instead of TrackerResponse
…ecker.torrents_checked
…update the self_checked flag in the DB
… the future") from the DB. Such torrents can appear if a torrent health was self-checked on the local machine and then updated with incorrect info from the remote machine without updating the self_checked flag.
…with future time)
kozlovsky
suggested changes
Feb 20, 2023
src/tribler/core/components/metadata_store/restapi/metadata_endpoint.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/metadata_store/restapi/metadata_endpoint.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/metadata_store/restapi/metadata_endpoint.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/metadata_store/restapi/metadata_endpoint.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrent_checker.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrent_checker.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrent_checker.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrentchecker_session.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrent_checker.py
Outdated
Show resolved
Hide resolved
src/tribler/core/components/torrent_checker/torrent_checker/torrent_checker.py
Outdated
Show resolved
Hide resolved
kozlovsky
approved these changes
Feb 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR related to #6131, fixes #7287
Changes:
run_tribler_headless.py
(it was run without components)check_random_tracker
(the result of checks were never saved in DB)app_mode
added to loggingFakeDHTSession
logic inconsistency