From c3f3885ce6ca5083dccdf02489e2795d2ef24b44 Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Mon, 16 Dec 2024 14:48:38 -0300 Subject: [PATCH] Remove this later Signed-off-by: Arthur Silva Sens --- cmd/opampsupervisor/supervisor/supervisor_windows.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/opampsupervisor/supervisor/supervisor_windows.go b/cmd/opampsupervisor/supervisor/supervisor_windows.go index 9c2a0fab4e47..2966f3c34312 100644 --- a/cmd/opampsupervisor/supervisor/supervisor_windows.go +++ b/cmd/opampsupervisor/supervisor/supervisor_windows.go @@ -18,15 +18,15 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/config" ) -type windowsService struct { +type windowsServiceee struct { sup *Supervisor } func NewSvcHandler() svc.Handler { - return &windowsService{} + return &windowsServiceee{} } -func (ws *windowsService) Execute(args []string, requests <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) { +func (ws *windowsServiceee) Execute(args []string, requests <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) { // The first argument supplied to service.Execute is the service name. If this is // not provided for some reason, raise a relevant error to the system event log if len(args) == 0 { @@ -65,7 +65,7 @@ func (ws *windowsService) Execute(args []string, requests <-chan svc.ChangeReque return false, 0 } -func (ws *windowsService) start(elog *eventlog.Log) error { +func (ws *windowsServiceee) start(elog *eventlog.Log) error { configFlag := flag.String("config", "", "Path to a supervisor configuration file") flag.Parse() @@ -85,7 +85,7 @@ func (ws *windowsService) start(elog *eventlog.Log) error { return ws.sup.Start() } -func (ws *windowsService) stop() { +func (ws *windowsServiceee) stop() { ws.sup.Shutdown() }