Skip to content
Snippets Groups Projects
Commit f96091b7 authored by scott.wang's avatar scott.wang
Browse files

fmt code

parent 667f4a08
No related branches found
No related tags found
No related merge requests found
...@@ -137,8 +137,8 @@ func GetInClusterKubernetesClient() (kubernetes.Interface, error) { ...@@ -137,8 +137,8 @@ func GetInClusterKubernetesClient() (kubernetes.Interface, error) {
// 3. refresh watch book-mark // 3. refresh watch book-mark
func (c *dubboRegistryController) initWatchSet() error { func (c *dubboRegistryController) initWatchSet() error {
req, err := labels.NewRequirement(DubboIOLabelKey, selection.In, []string{DubboIOConsumerLabelValue, DubboIOProviderLabelValue}) req, err := labels.NewRequirement(DubboIOLabelKey, selection.In, []string{DubboIOConsumerLabelValue, DubboIOProviderLabelValue})
if err != nil{ if err != nil {
return perrors.WithMessage(err, "new requirement") return perrors.WithMessage(err, "new requirement")
} }
...@@ -183,8 +183,8 @@ func (c *dubboRegistryController) readConfig() error { ...@@ -183,8 +183,8 @@ func (c *dubboRegistryController) readConfig() error {
func (c *dubboRegistryController) initNamespacedPodInformer(ns string) error { func (c *dubboRegistryController) initNamespacedPodInformer(ns string) error {
req, err := labels.NewRequirement(DubboIOLabelKey, selection.In, []string{DubboIOConsumerLabelValue, DubboIOProviderLabelValue}) req, err := labels.NewRequirement(DubboIOLabelKey, selection.In, []string{DubboIOConsumerLabelValue, DubboIOProviderLabelValue})
if err != nil{ if err != nil {
return perrors.WithMessage(err, "new requirement") return perrors.WithMessage(err, "new requirement")
} }
...@@ -213,7 +213,7 @@ func (c *dubboRegistryController) initNamespacedPodInformer(ns string) error { ...@@ -213,7 +213,7 @@ func (c *dubboRegistryController) initNamespacedPodInformer(ns string) error {
func (c *dubboRegistryController) initPodInformer() error { func (c *dubboRegistryController) initPodInformer() error {
if c.role == common.PROVIDER{ if c.role == common.PROVIDER {
return nil return nil
} }
...@@ -301,7 +301,7 @@ func (c *dubboRegistryController) Run() { ...@@ -301,7 +301,7 @@ func (c *dubboRegistryController) Run() {
// controller process every event in work-queue // controller process every event in work-queue
func (c *dubboRegistryController) run() { func (c *dubboRegistryController) run() {
if c.role == common.PROVIDER{ if c.role == common.PROVIDER {
return return
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment