atomashpolskiy / bt

BitTorrent library and client with DHT, magnet links, encryption and more
https://atomashpolskiy.github.io/bt/
Apache License 2.0
2.4k stars 382 forks source link

fix magnet link bug #196

Closed pyckle closed 2 years ago

pyckle commented 2 years ago

The MR fixes a minor bug that prevented tracker announcements from occurring before the torrent metadata is fetched from peers.

codecov-commenter commented 2 years ago

Codecov Report

Merging #196 (f3d284b) into master (30e6fa7) will decrease coverage by 0.07%. The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #196      +/-   ##
============================================
- Coverage     65.91%   65.83%   -0.08%     
+ Complexity     2392     2386       -6     
============================================
  Files           309      309              
  Lines         10333    10339       +6     
  Branches       1142     1144       +2     
============================================
- Hits           6811     6807       -4     
- Misses         2854     2858       +4     
- Partials        668      674       +6     
Impacted Files Coverage Δ
...in/java/bt/torrent/DefaultTorrentSessionState.java 13.43% <0.00%> (-0.42%) :arrow_down:
...-core/src/main/java/bt/tracker/udp/UdpTracker.java 0.00% <0.00%> (ø)
...ent/src/main/java/bt/tracker/http/HttpTracker.java 0.00% <0.00%> (ø)
...dht/src/main/java/bt/dht/stream/StreamAdapter.java 66.66% <0.00%> (-20.00%) :arrow_down:
...in/java/bt/net/pipeline/BufferedPieceRegistry.java 70.00% <0.00%> (-10.00%) :arrow_down:
...rc/main/java/bt/torrent/messaging/Assignments.java 88.63% <0.00%> (-9.10%) :arrow_down:
.../main/java/bt/torrent/messaging/PieceConsumer.java 58.90% <0.00%> (-8.22%) :arrow_down:
...core/src/main/java/bt/torrent/data/BlockWrite.java 68.42% <0.00%> (-5.27%) :arrow_down:
...src/main/java/bt/net/IncomingHandshakeHandler.java 62.50% <0.00%> (-5.00%) :arrow_down:
...ore/src/main/java/bt/torrent/messaging/Choker.java 62.96% <0.00%> (-3.71%) :arrow_down:
... and 13 more