1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-15 17:55:05 +00:00

Improve code documentation

This commit is contained in:
TwinProduction
2020-10-23 16:12:53 -04:00
parent 4e3856c638
commit 0b1f20d0de
3 changed files with 16 additions and 4 deletions

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()