Skip to content

Commit

Permalink
PMM-12078 Fix linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Jul 18, 2023
1 parent d7267be commit 3e94486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion managed/services/highavailability/highavailability.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (s *Service) Run(ctx context.Context) error {
return fmt.Errorf("failed to bootstrap Raft cluster: %w", err)
}
}
if len(s.params.Nodes) > 0 {
if len(s.params.Nodes) != 0 {
_, err := s.memberlist.Join(s.params.Nodes)
if err != nil {
return fmt.Errorf("failed to join memberlist cluster: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion managed/services/highavailability/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type services struct {

func newServices() *services {
return &services{
wg: new(sync.WaitGroup),
wg: &sync.WaitGroup{},
all: make(map[string]LeaderService),
running: make(map[string]LeaderService),
serviceAdded: make(chan struct{}),
Expand Down

0 comments on commit 3e94486

Please sign in to comment.