Skip to content

Commit

Permalink
db: fix clang tidy and windows build after PR 2279 (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Sep 1, 2024
1 parent c6f3cb3 commit 8a0991d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion silkworm/db/snapshots/bittorrent/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ BitTorrentClient::~BitTorrentClient() {
}

void BitTorrentClient::add_info_hash(std::string_view name, std::string_view info_hash) {
add_info_hash(std::move(name), std::move(info_hash), kBestTrackers);
add_info_hash(name, info_hash, kBestTrackers);
}

void BitTorrentClient::add_info_hash(std::string_view name, std::string_view info_hash, std::vector<std::string> trackers) {
Expand Down
2 changes: 1 addition & 1 deletion silkworm/db/snapshots/bittorrent/client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ TEST_CASE("BitTorrentClient::handle_alert", "[silkworm][snapshot][bittorrent]")
BitTorrentClientForTest client{settings};
lt::aux::stack_allocator allocator;
lt::add_torrent_params params = lt::parse_magnet_uri("magnet:?xt=urn:btih:df09957d8a28af3bc5137478885a8003677ca878");
params.save_path = settings.repository_path;
params.save_path = settings.repository_path.string();
lt::torrent_handle handle = client.add_torrent(params);

SECTION("lt::add_torrent_alert is handled") {
Expand Down

0 comments on commit 8a0991d

Please sign in to comment.