Skip to content

Commit

Permalink
fix: bt request extra type convert (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed May 16, 2024
1 parent 1860f53 commit 42a0b89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/protocol/bt/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ func (f *Fetcher) initClient() (err error) {
}

func (f *Fetcher) Resolve(req *base.Request) error {
if err := base.ParseReqExtra[bt.ReqExtra](req); err != nil {
return err
}

if err := f.addTorrent(req); err != nil {
return err
}
Expand Down Expand Up @@ -240,6 +236,9 @@ func (f *Fetcher) updateRes() {
}

func (f *Fetcher) addTorrent(req *base.Request) (err error) {
if err = base.ParseReqExtra[bt.ReqExtra](req); err != nil {
return
}
if err = f.initClient(); err != nil {
return
}
Expand Down

0 comments on commit 42a0b89

Please sign in to comment.