mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	remove windows service not used global variable
Signed-off-by: gy95 <1015105054@qq.com>
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user