]> git.r.bdr.sh - rbdr/mobius/blobdiff - cmd/mobius-hotline-server/main.go
Updating comments in docker-compose.yml
[rbdr/mobius] / cmd / mobius-hotline-server / main.go
index 11e3baf4039f878960b06a71607797fa02d3c82c..c5eea27749661b9c457ad2a49f7e084b47bee7b3 100644 (file)
@@ -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