proxy
This commit is contained in:
@ -8,6 +8,7 @@ import (
|
||||
|
||||
"gitea.home.4it.me/dilap54/platiparser/gorm"
|
||||
"gitea.home.4it.me/dilap54/platiparser/plati"
|
||||
"gitea.home.4it.me/dilap54/platiparser/proxies"
|
||||
"github.com/urfave/cli/v2"
|
||||
"gorm.io/gorm/clause"
|
||||
)
|
||||
@ -21,7 +22,7 @@ var digiCommand = &cli.Command{
|
||||
Action: func(c *cli.Context) error {
|
||||
ctx := context.Background()
|
||||
|
||||
platiCli := plati.New()
|
||||
platiCli := plati.New(proxies.Default())
|
||||
|
||||
db := gorm.GetDB()
|
||||
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
|
||||
"gitea.home.4it.me/dilap54/platiparser/gorm"
|
||||
"gitea.home.4it.me/dilap54/platiparser/plati"
|
||||
"gitea.home.4it.me/dilap54/platiparser/proxies"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
"github.com/urfave/cli/v2"
|
||||
"golang.org/x/sync/errgroup"
|
||||
@ -29,7 +30,7 @@ var platiCommand = &cli.Command{
|
||||
ctx := context.Background()
|
||||
|
||||
db := gorm.GetDB()
|
||||
platiCli := plati.New()
|
||||
platiCli := plati.New(proxies.Default())
|
||||
|
||||
// printNames(categories)
|
||||
|
||||
@ -62,8 +63,6 @@ var platiCommand = &cli.Command{
|
||||
}
|
||||
|
||||
return wg.Wait()
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user