mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
torrent: reduce deps of cfg #4305
This commit is contained in:
parent
e5c8a9a1bf
commit
d37447727a
@ -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)
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package torrentcfg
|
||||
package downloader
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package torrentcfg
|
||||
package downloader
|
||||
|
||||
import (
|
||||
"testing"
|
Loading…
Reference in New Issue
Block a user