mstore server: moving creating listener from service to service

This commit is contained in:
2026-03-25 12:21:58 +02:00
parent 8e7a0fffa7
commit 229a3a97fc
6 changed files with 97 additions and 81 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import (
type Starter struct {
runAsDaemon bool
port int64
port uint32
cmd *cobra.Command
srv *server.Server
}
@@ -36,7 +36,7 @@ func NewStarter() *Starter {
}
cmd.CompletionOptions.DisableDefaultCmd = true
cmd.Flags().BoolVarP(&sta.runAsDaemon, "asDaemon", "D", true, "Run service as daemon")
cmd.Flags().Int64VarP(&sta.port, "port", "P", 1025, "Service port")
cmd.Flags().Uint32VarP(&sta.port, "port", "P", 1025, "Service port")
sta.cmd = cmd
return sta