Improve code documentation
This commit is contained in:
1 parent
4e3856c638
commit
0b1f20d0de
3 files changed
+16
-4
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user