This commit is contained in:
wangchuxiao 2023-03-08 17:50:43 +08:00
parent 4beb348333
commit 4c4a8341c4

View File

@ -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))
} }
} }