Add more things for file handling
This commit is contained in:
parent
c813c4784a
commit
1fcf47bffc
14 changed files with 284 additions and 59 deletions
8
main.go
8
main.go
|
@ -5,7 +5,6 @@ import (
|
|||
"embed"
|
||||
"flag"
|
||||
"fmt"
|
||||
"git.mstar.dev/mstar/linstrom/media"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
@ -19,6 +18,7 @@ import (
|
|||
"gorm.io/gorm"
|
||||
|
||||
"git.mstar.dev/mstar/linstrom/config"
|
||||
"git.mstar.dev/mstar/linstrom/media"
|
||||
"git.mstar.dev/mstar/linstrom/shared"
|
||||
storagenew "git.mstar.dev/mstar/linstrom/storage-new"
|
||||
"git.mstar.dev/mstar/linstrom/storage-new/dbgen"
|
||||
|
@ -106,7 +106,11 @@ func newServer() {
|
|||
}
|
||||
|
||||
log.Info().Msg("Connecting to s3 storage and transcoder")
|
||||
_, err = media.NewServer()
|
||||
mediaServer, err := media.NewServer()
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("Failed to set up the media server")
|
||||
}
|
||||
media.GlobalServer = mediaServer
|
||||
|
||||
debugShutdownChan := make(chan *sync.WaitGroup, 1)
|
||||
interuptChan := make(chan os.Signal, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue