chore(resolver): export structs instead of interfaces
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/qdm12/gluetun/internal/updater/resolver"
|
||||
)
|
||||
|
||||
func newParallelResolver() (parallelResolver resolver.Parallel) {
|
||||
func newParallelResolver() (parallelResolver *resolver.Parallel) {
|
||||
const (
|
||||
maxFailRatio = 0.1
|
||||
maxDuration = 30 * time.Second
|
||||
|
||||
@@ -3,14 +3,14 @@ package privado
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/updater/resolver"
|
||||
"github.com/qdm12/gluetun/internal/provider/common"
|
||||
"github.com/qdm12/gluetun/internal/updater/unzip"
|
||||
)
|
||||
|
||||
type Updater struct {
|
||||
client *http.Client
|
||||
unzipper unzip.Unzipper
|
||||
presolver resolver.Parallel
|
||||
presolver common.ParallelResolver
|
||||
warner Warner
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user