]> source.dussan.org Git - gitea.git/commitdiff
Run make fmt on master (#9129)
authorDavid Svantesson <davidsvantesson@gmail.com>
Fri, 22 Nov 2019 21:00:01 +0000 (22:00 +0100)
committerzeripath <art27@cantab.net>
Fri, 22 Nov 2019 21:00:01 +0000 (21:00 +0000)
modules/graceful/manager_windows.go

index ab2131442a6a7cda0218161f1170c4f6469e17e1..925b1fc5600019f91e5edbe58e4523cd6c86ff8d 100644 (file)
@@ -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: