aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-06 15:44:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-07 11:31:53 +0200
commit14dfc4e3e1925fcc3d303100c44ef4c321427c6b (patch)
treedd1e16a34fafff9635381e21e99c65421ed5cbf4 /manager
parenttunnel: perform full stop on shutdown (diff)
downloadwireguard-windows-14dfc4e3e1925fcc3d303100c44ef4c321427c6b.tar.xz
wireguard-windows-14dfc4e3e1925fcc3d303100c44ef4c321427c6b.zip
global: cleanup TODO comment spacing
Diffstat (limited to '')
-rw-r--r--manager/install.go2
-rw-r--r--manager/ipc_server.go6
-rw-r--r--manager/service.go2
3 files changed, 5 insertions, 5 deletions
diff --git a/manager/install.go b/manager/install.go
index 2eddbbbe..00ed1f40 100644
--- a/manager/install.go
+++ b/manager/install.go
@@ -43,7 +43,7 @@ func InstallManager() error {
return nil
}
- //TODO: Do we want to bail if executable isn't being run from the right location?
+ // TODO: Do we want to bail if executable isn't being run from the right location?
serviceName := "WireGuardManager"
service, err := m.OpenService(serviceName)
diff --git a/manager/ipc_server.go b/manager/ipc_server.go
index a460a27b..18ff858b 100644
--- a/manager/ipc_server.go
+++ b/manager/ipc_server.go
@@ -205,8 +205,8 @@ func (s *ManagerService) Create(tunnelConfig conf.Config, tunnel *Tunnel) error
}
*tunnel = Tunnel{tunnelConfig.Name}
return nil
- //TODO: handle already existing situation
- //TODO: handle already running and existing situation
+ // TODO: handle already existing situation
+ // TODO: handle already running and existing situation
}
func (s *ManagerService) Tunnels(_ uintptr, tunnels *[]Tunnel) error {
@@ -219,7 +219,7 @@ func (s *ManagerService) Tunnels(_ uintptr, tunnels *[]Tunnel) error {
(*tunnels)[i].Name = names[i]
}
return nil
- //TODO: account for running ones that aren't in the configuration store somehow
+ // TODO: account for running ones that aren't in the configuration store somehow
}
func (s *ManagerService) Quit(stopTunnelsOnQuit bool, alreadyQuit *bool) error {
diff --git a/manager/service.go b/manager/service.go
index ba7208d8..d6c7d922 100644
--- a/manager/service.go
+++ b/manager/service.go
@@ -159,7 +159,7 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest
first = false
}
- //TODO: we lock the OS thread so that these inheritable handles don't escape into other processes that
+ // TODO: we lock the OS thread so that these inheritable handles don't escape into other processes that
// might be running in parallel Go routines. But the Go runtime is strange and who knows what's really
// happening with these or what is inherited. We need to do some analysis to be certain of what's going on.
runtime.LockOSThread()