From 394c1d5e53f0b63614a225b0fe6d77fcba1b1b32 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 19 Jun 2023 18:00:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=A7=BB=E9=99=A4=E5=AF=B9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E7=A7=B0=E7=9A=84=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/common/jms_service.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/common/jms_service.go b/cmd/common/jms_service.go index 9b3a86e..797593e 100644 --- a/cmd/common/jms_service.go +++ b/cmd/common/jms_service.go @@ -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 {