torrent: reduce deps of cfg #4305

This commit is contained in:
Alex Sharov 2022-05-30 17:36:02 +07:00 committed by GitHub
parent e5c8a9a1bf
commit d37447727a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ func openClient(cfg *torrent.ClientConfig) (db kv.RwDB, c storage.PieceCompletio
if err != nil {
return nil, nil, nil, nil, err
}
c, err = torrentcfg.NewMdbxPieceCompletion(db)
c, err = NewMdbxPieceCompletion(db)
if err != nil {
return nil, nil, nil, nil, fmt.Errorf("torrentcfg.NewMdbxPieceCompletion: %w", err)
}

View File

@ -1,4 +1,4 @@
package torrentcfg
package downloader
import (
"context"

View File

@ -1,4 +1,4 @@
package torrentcfg
package downloader
import (
"testing"