Improve code documentation

This commit is contained in:
TwinProduction committed 2020-10-23 16:12:53 -04:00
1 parent 4e3856c638
commit 0b1f20d0de
3 files changed
+16 -4

No files matched your search

+2
View File
@@ -15,6 +15,8 @@ var (
rwLock sync.RWMutex
)
// PublishMetricsForService publishes metrics for the given service and its result.
// These metrics will be exposed at /metrics if the metrics are enabled
func PublishMetricsForService(service *core.Service, result *core.Result) {
if config.Get().Metrics {
rwLock.Lock()