mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-31 23:48:08 +08:00
refactor: unified naming for module startup functions.
This commit is contained in:
parent
6c8b7de786
commit
0bd177f362
@ -15,6 +15,7 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"github.com/openimsdk/open-im-server/v3/internal/tools"
|
"github.com/openimsdk/open-im-server/v3/internal/tools"
|
||||||
util "github.com/openimsdk/open-im-server/v3/pkg/util/genutil"
|
util "github.com/openimsdk/open-im-server/v3/pkg/util/genutil"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@ -136,7 +137,7 @@ func NewSeqCmd() *SeqCmd {
|
|||||||
|
|
||||||
func (s *SeqCmd) GetSeqCmd() *cobra.Command {
|
func (s *SeqCmd) GetSeqCmd() *cobra.Command {
|
||||||
s.Command.Run = func(cmdLines *cobra.Command, args []string) {
|
s.Command.Run = func(cmdLines *cobra.Command, args []string) {
|
||||||
_, err := tools.InitMsgTool(s.MsgTool.Config)
|
_, err := tools.InitMsgTool(context.Background(), s.MsgTool.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.ExitWithError(err)
|
util.ExitWithError(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user