mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-31 06:56:58 +08:00
refactor: unified naming for module startup functions.
This commit is contained in:
parent
6c8b7de786
commit
0bd177f362
@ -15,6 +15,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/openimsdk/open-im-server/v3/internal/tools"
|
||||
util "github.com/openimsdk/open-im-server/v3/pkg/util/genutil"
|
||||
"github.com/spf13/cobra"
|
||||
@ -136,7 +137,7 @@ func NewSeqCmd() *SeqCmd {
|
||||
|
||||
func (s *SeqCmd) GetSeqCmd() *cobra.Command {
|
||||
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 {
|
||||
util.ExitWithError(err)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user