Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run fmt on files on master #9129

Merged
merged 1 commit into from
Nov 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions modules/graceful/manager_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const (
acceptHammerCode = svc.Accepted(hammerCode)
)


type gracefulManager struct {
isChild bool
lock *sync.RWMutex
Expand Down Expand Up @@ -73,7 +72,7 @@ func (g *gracefulManager) Execute(args []string, changes <-chan svc.ChangeReques
if setting.StartupTimeout > 0 {
status <- svc.Status{State: svc.StartPending}
} else {
status <- svc.Status{State: svc.StartPending, WaitHint: uint32(setting.StartupTimeout/time.Millisecond)}
status <- svc.Status{State: svc.StartPending, WaitHint: uint32(setting.StartupTimeout / time.Millisecond)}
}

// Now need to wait for everything to start...
Expand All @@ -100,16 +99,16 @@ loop:
break loop
case hammerCode:
g.doShutdown()
g.doHammerTime(0 *time.Second)
g.doHammerTime(0 * time.Second)
break loop
default:
log.Debug("Unexpected control request: %v", change.Cmd)
}
}

status <- svc.Status{
State: svc.StopPending,
WaitHint: uint32(waitTime/time.Millisecond),
State: svc.StopPending,
WaitHint: uint32(waitTime / time.Millisecond),
}

hammerLoop:
Expand Down