fix build on Windows

This commit is contained in:
Nicola Murino 2020-12-18 16:22:52 +01:00
parent bcf0fa073e
commit 1ac610da1a
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB
3 changed files with 1 additions and 4 deletions

View file

@ -90,8 +90,5 @@ func getCustomServeFlags() []string {
if logCompress != defaultLogCompress { if logCompress != defaultLogCompress {
result = append(result, "--"+logCompressFlag+"=true") result = append(result, "--"+logCompressFlag+"=true")
} }
if profiler != defaultProfiler {
result = append(result, "--"+profilerFlag+"=true")
}
return result return result
} }

View file

@ -29,7 +29,6 @@ var (
LogMaxAge: logMaxAge, LogMaxAge: logMaxAge,
LogCompress: logCompress, LogCompress: logCompress,
LogVerbose: logVerbose, LogVerbose: logVerbose,
Profiler: profiler,
Shutdown: make(chan bool), Shutdown: make(chan bool),
} }
winService := service.WindowsService{ winService := service.WindowsService{

View file

@ -15,6 +15,7 @@ import (
"github.com/drakkan/sftpgo/ftpd" "github.com/drakkan/sftpgo/ftpd"
"github.com/drakkan/sftpgo/httpd" "github.com/drakkan/sftpgo/httpd"
"github.com/drakkan/sftpgo/logger" "github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/telemetry"
"github.com/drakkan/sftpgo/webdavd" "github.com/drakkan/sftpgo/webdavd"
) )