More code cleanup and struct simplification

This commit is contained in:
Dane Everitt
2021-01-10 14:43:27 -08:00
parent c228acaafc
commit a48abc92ad
4 changed files with 67 additions and 121 deletions

View File

@@ -272,8 +272,8 @@ func rootCmdRun(cmd *cobra.Command, _ []string) {
// Wait until all of the servers are ready to go before we fire up the SFTP and HTTP servers.
pool.StopWait()
// Initialize the SFTP server.
if err := sftp.Initialize(c.System); err != nil {
// Run the SFTP server.
if err := sftp.NewServer().Run(); err != nil {
log.WithError(err).Fatal("failed to initialize the sftp server")
return
}