mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
cobra
This commit is contained in:
parent
4beb348333
commit
4c4a8341c4
@ -1,7 +1,7 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"OpenIM/internal/msggateway"
|
//"OpenIM/internal/msggateway"
|
||||||
"OpenIM/pkg/common/constant"
|
"OpenIM/pkg/common/constant"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
@ -25,8 +25,8 @@ func (m *MsgGatewayCmd) getWsPortFlag(cmd *cobra.Command) int {
|
|||||||
|
|
||||||
func (m *MsgGatewayCmd) addRun() {
|
func (m *MsgGatewayCmd) addRun() {
|
||||||
m.Command.Run = func(cmd *cobra.Command, args []string) {
|
m.Command.Run = func(cmd *cobra.Command, args []string) {
|
||||||
msggateway.Init(m.getPortFlag(cmd), m.getWsPortFlag(cmd))
|
//msggateway.Init(m.getPortFlag(cmd), m.getWsPortFlag(cmd))
|
||||||
msggateway.Run(m.getPrometheusPortFlag(cmd))
|
//msggateway.Run(m.getPrometheusPortFlag(cmd))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user