refactor: use torrent::heuristics_enum instead of choke_queue::heuristics_enum

Update to use the new top-level torrent::heuristics_enum from
torrent/download/types.h, removing the dependency on choke_queue.h
for enum values.
This commit is contained in:
trim21
2026-06-09 17:59:55 +08:00
committed by Jari Sundell
parent 72f2197add
commit c63db9cf97
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -164,8 +164,8 @@ apply_d_connection_type(core::Download* download, const std::string& name) {
torrent::Object
apply_d_choke_heuristics(core::Download* download, const std::string& name, bool is_down) {
torrent::Download::HeuristicType t =
(torrent::Download::HeuristicType)torrent::option_find_string(torrent::OPTION_CHOKE_HEURISTICS, name.c_str());
torrent::heuristics_enum t =
static_cast<torrent::heuristics_enum>(torrent::option_find_string(torrent::OPTION_CHOKE_HEURISTICS, name.c_str()));
if (is_down)
download->download()->set_download_choke_heuristic(t);