mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
build: Update Go to v1.24.1 (#25249)
This commit is contained in:
@@ -185,9 +185,6 @@ func ParseConfigFile(path string) (*Config, error) {
|
||||
|
||||
// Parse durations for Consul and Vault config blocks if provided.
|
||||
for _, consulConfig := range c.Consuls {
|
||||
// Capture consulConfig inside the loop so the parse duration function
|
||||
// modifies the right configuration.
|
||||
consulConfig := consulConfig
|
||||
|
||||
if consulConfig.ServiceIdentity != nil {
|
||||
tds = append(tds, durationConversionMap{
|
||||
@@ -209,9 +206,6 @@ func ParseConfigFile(path string) (*Config, error) {
|
||||
}
|
||||
|
||||
for _, vaultConfig := range c.Vaults {
|
||||
// Capture vaultConfig inside the loop so the parse duration function
|
||||
// modifies the right configuration.
|
||||
vaultConfig := vaultConfig
|
||||
|
||||
if vaultConfig.DefaultIdentity != nil {
|
||||
tds = append(tds, durationConversionMap{
|
||||
|
||||
@@ -148,7 +148,6 @@ func (c *JobStopCommand) Run(args []string) int {
|
||||
|
||||
var wg sync.WaitGroup
|
||||
for _, jobID := range jobIDs {
|
||||
jobID := jobID
|
||||
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user