diff options
author | Alan Pearce | 2024-05-09 20:17:19 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-09 20:17:19 +0200 |
commit | 5573c4b7f7495f6e6cbb899cce8f8fa90425b01c (patch) | |
tree | 8a65b5aad4c7a62669ce1a10ad07b43476218f50 /serve/main.go | |
parent | 9389b7dd633f6cc4653e6709a972cc7d6ab9e48f (diff) | |
download | searchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.tar.lz searchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.tar.zst searchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.zip |
refactor: clean up flags and environment variables
Diffstat (limited to 'serve/main.go')
-rw-r--r-- | serve/main.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/serve/main.go b/serve/main.go index 5c68cc5..9ba2113 100644 --- a/serve/main.go +++ b/serve/main.go @@ -4,7 +4,6 @@ import ( "fmt" "log" "log/slog" - "net/url" "os" "os/signal" "sync" @@ -15,11 +14,6 @@ import ( "github.com/pkg/errors" ) -var ( - CommitSHA string - ShortSHA string -) - func main() { runtimeConfig := server.Config{} help, err := conf.Parse("", &runtimeConfig) @@ -56,10 +50,6 @@ func main() { defer wg.Done() sErr <- sv.Start() }() - if !runtimeConfig.InDevServer { - url, _ := url.Parse("http://" + sv.Addr) - log.Printf("server listening on %s", url.String()) - } err = <-sErr if err != nil { |