Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fix goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
tnsetting committed Feb 5, 2021
1 parent 7c2a395 commit 3b170a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/async/notifications/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func NewNotificationsPublisher(config runtimeInterfaces.NotificationsConfig, sco
}

func NewEventsPublisher(config runtimeInterfaces.ExternalEventsConfig, scope promutils.Scope) interfaces.Publisher {
if config.Enable == false {
if !config.Enable {
return implementations.NewNoopPublish()
}
reconnectAttempts := config.ReconnectAttempts
Expand Down
5 changes: 3 additions & 2 deletions pkg/async/notifications/implementations/event_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package implementations

import (
"context"
"k8s.io/apimachinery/pkg/util/sets"
"strings"

"k8s.io/apimachinery/pkg/util/sets"

"github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"

"github.com/lyft/flyteadmin/pkg/async/notifications/interfaces"
Expand Down Expand Up @@ -67,7 +68,7 @@ func newEventPublisherSystemMetrics(scope promutils.Scope) eventPublisherSystemM
return eventPublisherSystemMetrics{
Scope: scope,
PublishTotal: scope.MustNewCounter("event_publish_total", "overall count of publish messages"),
PublishSuccess: scope.MustNewCounter("event_publish_success", "sucess count of publish messages"),
PublishSuccess: scope.MustNewCounter("event_publish_success", "success count of publish messages"),
PublishError: scope.MustNewCounter("event_publish_errors", "count of publish errors"),
}
}
Expand Down

0 comments on commit 3b170a1

Please sign in to comment.