mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
removed version flag: git tags are used for versioning
This commit is contained in:
parent
8d85fc5f81
commit
8197ec0931
@ -30,8 +30,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
uniqushPushVersion = "content-server 1.6.0"
|
||||
|
||||
flagShowVersionFlag = flag.Bool("version", false, "version info")
|
||||
flagAddress = flag.String("address", "", "address to bind socket server host:port")
|
||||
flagWebserverAddress = flag.String("webserver-address", "", "address to bind web server host:port, when empty no webserver will be spawned")
|
||||
@ -59,11 +57,6 @@ func main() {
|
||||
fmt.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
|
||||
if *flagShowVersionFlag {
|
||||
fmt.Printf("%v\n", uniqushPushVersion)
|
||||
return
|
||||
}
|
||||
|
||||
if *flagFreeOSMem > 0 {
|
||||
Log.Info("dumping heap every $interval minutes", zap.Int("interval", *flagHeapDump))
|
||||
Log.Info("freeing OS memory every $interval minutes", zap.Int("interval", *flagFreeOSMem))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user