mstore server: moving creating listener from service to service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user