181
lr := LoadYamlFile(contents)
182
for _, e := range lr.Errors {
184
>
}
185
for _, w := range lr.Warnings {
186
fc.logger.Warn("dynamic config warning", tag.Error(w))
187
}
188
if len(lr.Errors) > 0 {
189
>
// we don't retry on parsing errors which will fail deterministically until the file is fixed
file_based_client.go
190
>
retryOnErr = false
191
>
return fmt.Errorf("loading dynamic config failed: %d errors, %d warnings",
192
>
len(lr.Errors), len(lr.Warnings))
193
>
}
194
195
prev := fc.values.Swap(lr.Map)