X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/31a339cd75748b96a792d9f62b7c94c4d180ec2e..f0bd51c43919036651670df0120b17512d3ca902:/cmd/mobius-hotline-server/main.go diff --git a/cmd/mobius-hotline-server/main.go b/cmd/mobius-hotline-server/main.go index 11e3baf..c5eea27 100644 --- a/cmd/mobius-hotline-server/main.go +++ b/cmd/mobius-hotline-server/main.go @@ -12,12 +12,10 @@ import ( "gopkg.in/natefinch/lumberjack.v2" "io" "log" - "math/rand" "net/http" "os" "path/filepath" "runtime" - "time" ) //go:embed mobius/config @@ -28,8 +26,6 @@ const ( ) func main() { - rand.Seed(time.Now().UnixNano()) - ctx, cancel := context.WithCancel(context.Background()) // TODO: implement graceful shutdown by closing context @@ -91,7 +87,6 @@ func main() { logger.Fatal(err) } logger.Infow("Config dir initialized at " + *configDir) - } else { logger.Infow("Existing config dir found. Skipping initialization.") } @@ -236,7 +231,6 @@ func copyDir(src, dst string) error { } f.Close() } - } return nil