netdev_common: Add mutex around metricDescs access
In certain instances on heavily loaded nodes with many network devices, there may be concurrent access to the netdev collector's `metricDescs` map, resulting in a panic. This adds a mutex to prevent concurrent reads and writes to the map. Signed-off-by: Brad Ison <bison@xvdf.io>
B
Brad Ison committed
cb7b5a755bdba09a042da648cb220be94f812360
Parent: 996563f