mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-30 11:46:16 +00:00
chore: enable use-any from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -88,7 +88,7 @@ func initConfig() error {
|
||||
|
||||
ReportData = &E2EReport{
|
||||
TestDescription: VeleroCfg.TestCaseDescribe,
|
||||
OtherFields: make(map[string]interface{}),
|
||||
OtherFields: make(map[string]any),
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -82,11 +82,11 @@ func (m *MetricsCollector) UpdateOneTimeMetrics() {
|
||||
}
|
||||
|
||||
// GetMetrics returns the metrics from all metrics
|
||||
func (m *MetricsCollector) GetMetrics() map[string]interface{} {
|
||||
func (m *MetricsCollector) GetMetrics() map[string]any {
|
||||
m.Mu.Lock() // Acquire the lock before accessing shared resources
|
||||
defer m.Mu.Unlock() // Release the lock after the function returns
|
||||
|
||||
dataMap := make(map[string]interface{})
|
||||
dataMap := make(map[string]any)
|
||||
resData := make(map[string]([]map[string]map[string]string))
|
||||
for _, metric := range m.Metrics {
|
||||
monitorMetrics := metric.GetMetrics()
|
||||
@@ -102,7 +102,7 @@ func (m *MetricsCollector) GetMetrics() map[string]interface{} {
|
||||
}
|
||||
|
||||
for _, metric := range m.OneTimeMetrics {
|
||||
oneTimeMetricsMap := make(map[string]interface{})
|
||||
oneTimeMetricsMap := make(map[string]any)
|
||||
monitorMetrics := metric.GetMetrics()
|
||||
for key, value := range monitorMetrics {
|
||||
oneTimeMetricsMap[key] = value
|
||||
|
||||
Reference in New Issue
Block a user