refactor: unified naming for module startup functions.

This commit is contained in:
Gordon 2024-03-19 16:46:02 +08:00
parent 6c8b7de786
commit 0bd177f362

View File

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