fix: correct typo var name mirroHostConfig (#3777)

Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
Co-authored-by: TeCHiScy <741195+TeCHiScy@users.noreply.github.com>
This commit is contained in:
Ramkumar Chinchani
2026-02-05 01:25:09 -08:00
committed by GitHub
parent 851ad012cb
commit 67b8241a7b
+6 -6
View File
@@ -857,17 +857,17 @@ func newClient(opts syncconf.RegistryConfig, credentials syncconf.CredentialsFil
hostConfigOpts = append(hostConfigOpts, hostConfig)
for _, mirror := range mirrorsHosts {
mirroHostConfig := hostConfig
mirroHostConfig.Name = mirror
mirroHostConfig.Hostname = mirror
mirrorHostConfig := hostConfig
mirrorHostConfig.Name = mirror
mirrorHostConfig.Hostname = mirror
creds, ok := credentials[mirror]
if ok {
mirroHostConfig.User = creds.Username
mirroHostConfig.Pass = creds.Password
mirrorHostConfig.User = creds.Username
mirrorHostConfig.Pass = creds.Password
}
hostConfigOpts = append(hostConfigOpts, mirroHostConfig)
hostConfigOpts = append(hostConfigOpts, mirrorHostConfig)
}
regOpts := []reg.Opts{}