diff --git a/cmd/serve/docker/docker.go b/cmd/serve/docker/docker.go index b9702d87f..5e4971801 100644 --- a/cmd/serve/docker/docker.go +++ b/cmd/serve/docker/docker.go @@ -20,7 +20,7 @@ var ( pluginName = "rclone" pluginScope = "local" baseDir = "/var/lib/docker-volumes/rclone" - sockDir = "/run/docker/plugins" // location of unix sockets (only relevant on Linux and FreeBSD) + sockDir = "/run/docker/plugins" //lint:ignore U1000 unused when not building linux defSpecDir = "/etc/docker/plugins" stateFile = "docker-plugin.state" socketAddr = "" // TCP listening address or empty string for Unix socket diff --git a/cmd/serve/docker/systemd_unsupported.go b/cmd/serve/docker/systemd_unsupported.go index e25d784c0..02b0b81a4 100644 --- a/cmd/serve/docker/systemd_unsupported.go +++ b/cmd/serve/docker/systemd_unsupported.go @@ -7,6 +7,7 @@ import ( "os" ) +//lint:ignore U1000 unused when not building linux func systemdActivationFiles() []*os.File { return nil } diff --git a/cmd/serve/ftp/ftp.go b/cmd/serve/ftp/ftp.go index 05f7b0924..7ed96e3c0 100644 --- a/cmd/serve/ftp/ftp.go +++ b/cmd/serve/ftp/ftp.go @@ -184,7 +184,8 @@ func (s *server) serve() error { return s.srv.ListenAndServe() } -// serve runs the ftp server +// close stops the ftp server +//lint:ignore U1000 unused when not building linux func (s *server) close() error { fs.Logf(s.f, "Stopping FTP on %s", s.srv.Hostname+":"+strconv.Itoa(s.srv.Port)) return s.srv.Shutdown()