Initial peers now passed to read_metainfo_from_peer_receiver

This commit is contained in:
Igor Katson 2023-12-01 09:44:51 +00:00
parent f337ab1837
commit 5ee9390bb1
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 11 additions and 8 deletions

View file

@ -504,6 +504,7 @@ impl Session {
let (info, dht_rx, initial_peers) = match read_metainfo_from_peer_receiver(
self.peer_id,
info_hash,
opts.initial_peers.clone().unwrap_or_default(),
dht_rx,
Some(self.merge_peer_opts(opts.peer_opts)),
)