Skip to content

Commit c5340eb

Browse files
committed
linter fixes
1 parent ced733f commit c5340eb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

internal/actions/drain_node_handler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ import (
2424

2525
var _ ActionHandler = &DrainNodeHandler{}
2626

27-
const (
28-
minDrainTimeout = 0 // Minimal pod drain timeout.
29-
)
30-
3127
type drainNodeConfig struct {
3228
podsDeleteTimeout time.Duration
3329
podDeleteRetries int

internal/informer/manager.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"context"
66
"errors"
77
"fmt"
8-
"sync"
98
"time"
109

1110
"github.com/sirupsen/logrus"
@@ -50,7 +49,6 @@ type Manager struct {
5049
started bool
5150
vaAvailable bool
5251
cancelFunc context.CancelFunc
53-
mu sync.RWMutex
5452
}
5553

5654
// Option is a functional option for configuring the Manager.
@@ -390,8 +388,8 @@ func (m *Manager) reportCacheSize(ctx context.Context) {
390388
}
391389

392390
if m.vaAvailable {
393-
vas := m.volumeAttachments.Informer().GetStore().ListKeys()
394-
size := len(vas)
391+
was := m.volumeAttachments.Informer().GetStore().ListKeys()
392+
size := len(was)
395393
m.log.WithField("cache_size", size).Debug("volumeattachment informer cache size")
396394
metrics.SetInformerCacheSize("volumeattachment", size)
397395
}

0 commit comments

Comments
 (0)