Skip to content

Commit

Permalink
Remove this later
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <[email protected]>
  • Loading branch information
ArthurSens committed Dec 16, 2024
1 parent 30092ae commit c3f3885
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/opampsupervisor/supervisor/supervisor_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()

Expand All @@ -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()
}

Expand Down

0 comments on commit c3f3885

Please sign in to comment.