mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
remove windows service not used global variable
Signed-off-by: gy95 <1015105054@qq.com>
This commit is contained in:
parent
a68644ba24
commit
e413b05407
@ -29,10 +29,6 @@ import (
|
|||||||
"golang.org/x/sys/windows/svc"
|
"golang.org/x/sys/windows/svc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
service *handler
|
|
||||||
)
|
|
||||||
|
|
||||||
type handler struct {
|
type handler struct {
|
||||||
tosvc chan bool
|
tosvc chan bool
|
||||||
fromsvc chan error
|
fromsvc chan error
|
||||||
@ -47,7 +43,6 @@ func InitService(serviceName string) error {
|
|||||||
fromsvc: make(chan error),
|
fromsvc: make(chan error),
|
||||||
}
|
}
|
||||||
|
|
||||||
service = h
|
|
||||||
var err error
|
var err error
|
||||||
go func() {
|
go func() {
|
||||||
err = svc.Run(serviceName, h)
|
err = svc.Run(serviceName, h)
|
||||||
|
Loading…
Reference in New Issue
Block a user