Skip to content

Commit

Permalink
perf: optimize communication exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Jan 9, 2024
1 parent ba3a682 commit b5eab52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func InitHandle(conf option.Config) error {
defaultmonitorHandler = NewMonitorHandler(prometheusCli)
defServiceEventHandler = NewServiceEventHandler()
defApplicationHandler = NewApplicationHandler(statusCli, prometheusCli, rainbondClient, clientset, dynamicClient)
defRegistryAuthSecretHandler = CreateRegistryAuthSecretManager(dbmanager, mqClient, etcdcli)
defRegistryAuthSecretHandler = CreateRegistryAuthSecretManager(dbmanager, mqClient)
defNodesHandler = NewNodesHandler(clientset, conf.RbdNamespace, restconfig, mapper, prometheusCli)
return nil
}
Expand Down
5 changes: 1 addition & 4 deletions api/handler/registry_auth_secret_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package handler
import (
"fmt"

"github.com/coreos/etcd/clientv3"
apimodel "github.com/goodrain/rainbond/api/model"
"github.com/goodrain/rainbond/db"
"github.com/goodrain/rainbond/mq/client"
Expand All @@ -31,15 +30,13 @@ import (
type RegistryAuthSecretAction struct {
dbmanager db.Manager
mqclient client.MQClient
etcdCli *clientv3.Client
}

// CreateRegistryAuthSecretManager creates registry auth secret manager
func CreateRegistryAuthSecretManager(dbmanager db.Manager, mqclient client.MQClient, etcdCli *clientv3.Client) *RegistryAuthSecretAction {
func CreateRegistryAuthSecretManager(dbmanager db.Manager, mqclient client.MQClient) *RegistryAuthSecretAction {
return &RegistryAuthSecretAction{
dbmanager: dbmanager,
mqclient: mqclient,
etcdCli: etcdCli,
}
}

Expand Down

0 comments on commit b5eab52

Please sign in to comment.