Skip to content

Commit

Permalink
perf: 移除对组件名称的校验
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Jun 19, 2023
1 parent 892b653 commit 394c1d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/common/jms_service.go
Expand Up @@ -43,10 +43,6 @@ func MustRegisterTerminal(conf *config.Config) (key model.AccessKey) {
bootstrapToken = conf.BootstrapToken
dstFilePath = conf.AccessKeyFilePath
)
if _, ok := model.SupportedComponent(componentName); !ok {
logger.Fatalf("组件名称错误: %s", componentName)
}

for i := 0; i < 10; i++ {
terminal, err := service.RegisterTerminalAccount(coreHost, componentName, name, bootstrapToken)
if err != nil {
Expand Down

0 comments on commit 394c1d5

Please sign in to comment.