Skip to content

Commit

Permalink
chore: Remove init of extra hosts. (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogappa authored Aug 8, 2024
1 parent da98954 commit e32084d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions managedplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,13 @@ func (c Clients) Terminate() error {
// If registrySpec is Docker then client downloads the docker image, runs it and creates a gRPC connection.
func NewClient(ctx context.Context, typ PluginType, config Config, opts ...Option) (*Client, error) {
c := &Client{
directory: defaultDownloadDir,
wg: &sync.WaitGroup{},
config: config,
metrics: &Metrics{},
registry: config.Registry,
cqDockerHost: DefaultCloudQueryDockerHost,
dockerAuth: config.DockerAuth,
dockerExtraHosts: []string{},
directory: defaultDownloadDir,
wg: &sync.WaitGroup{},
config: config,
metrics: &Metrics{},
registry: config.Registry,
cqDockerHost: DefaultCloudQueryDockerHost,
dockerAuth: config.DockerAuth,
}
for _, opt := range opts {
opt(c)
Expand Down

0 comments on commit e32084d

Please sign in to comment.