From 135b74675e4140365e0d53a5c7220d34f20501fb Mon Sep 17 00:00:00 2001 From: Jamie Milton Date: Wed, 24 Aug 2022 10:04:23 +0100 Subject: [PATCH] Additional Comments Signed-off-by: Jamie Milton --- exporter.go | 2 +- initiate/initiate.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exporter.go b/exporter.go index 4f514c3a6..42e805c63 100644 --- a/exporter.go +++ b/exporter.go @@ -4,7 +4,7 @@ package main import ( - //We keep this at the top to ensure it happens first + //Its important that we do these first so that we can register with the windows service control ASAP to avoid timeouts "github.com/prometheus-community/windows_exporter/initiate" "github.com/prometheus-community/windows_exporter/log" diff --git a/initiate/initiate.go b/initiate/initiate.go index 7da31c0d2..9b4c08e8a 100644 --- a/initiate/initiate.go +++ b/initiate/initiate.go @@ -1,3 +1,4 @@ +//This package allows us to initiate Time Sensitive components (Like registering the windows service) as early as possible in the startup process package initiate import (