mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 09:05:30 +00:00
clone outside
This commit is contained in:
parent
644b09c04b
commit
157f13c984
2 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ async fn main() -> Result<()> {
|
|||
)?;
|
||||
let trackers = Trackers::init(&config.tracker)?;
|
||||
let session = librqbit::Session::new_with_opts(
|
||||
preload.root(),
|
||||
preload.root().clone(),
|
||||
SessionOptions {
|
||||
bind_device_name: config.bind,
|
||||
listen: None,
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ impl Preload {
|
|||
Ok(p)
|
||||
}
|
||||
|
||||
pub fn root(&self) -> PathBuf {
|
||||
self.root.clone()
|
||||
pub fn root(&self) -> &PathBuf {
|
||||
&self.root
|
||||
}
|
||||
|
||||
pub fn bytes(&self, relative: &PathBuf) -> Result<Vec<u8>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue