Finish refactoring SFTP server logic

This commit is contained in:
Dane Everitt
2021-01-10 15:06:06 -08:00
parent a48abc92ad
commit 0cb3b815d1
3 changed files with 90 additions and 104 deletions

View File

@@ -273,7 +273,7 @@ func rootCmdRun(cmd *cobra.Command, _ []string) {
pool.StopWait()
// Run the SFTP server.
if err := sftp.NewServer().Run(); err != nil {
if err := sftp.New().Run(); err != nil {
log.WithError(err).Fatal("failed to initialize the sftp server")
return
}