diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2019-11-22 22:00:01 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-22 21:00:01 +0000 |
commit | a4e398dc45c5ce8e4b6e1c6d9599b30316b82ae1 (patch) | |
tree | f4af4a6c39acf1a0204f6cb2500d3341f0dfbad2 /modules/graceful | |
parent | cbd2bebec0769d8caf7cfae958685b6d740e5e78 (diff) | |
download | gitea-a4e398dc45c5ce8e4b6e1c6d9599b30316b82ae1.tar.gz gitea-a4e398dc45c5ce8e4b6e1c6d9599b30316b82ae1.zip |
Run make fmt on master (#9129)
Diffstat (limited to 'modules/graceful')
-rw-r--r-- | modules/graceful/manager_windows.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go index ab2131442a..925b1fc560 100644 --- a/modules/graceful/manager_windows.go +++ b/modules/graceful/manager_windows.go @@ -28,7 +28,6 @@ const ( acceptHammerCode = svc.Accepted(hammerCode) ) - type gracefulManager struct { isChild bool lock *sync.RWMutex @@ -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... @@ -100,7 +99,7 @@ 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) @@ -108,8 +107,8 @@ loop: } status <- svc.Status{ - State: svc.StopPending, - WaitHint: uint32(waitTime/time.Millisecond), + State: svc.StopPending, + WaitHint: uint32(waitTime / time.Millisecond), } hammerLoop: |