Skip to content

Commit

Permalink
fix go-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sadysnaat committed Apr 7, 2021
1 parent fcab985 commit 3f1b993
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion pkg/context/controller_manager_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ type ControllerManagerContext struct {
// endpoints.
Password string


// EnableKeepAlive is a session feature to enable keep alive handler
// for better load management on vSphere api server
EnableKeepAlive bool
Expand Down
8 changes: 4 additions & 4 deletions pkg/manager/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ type Options struct {
// LeaderElectionEnabled is a flag that enables leader election.
LeaderElectionEnabled bool

// EnableKeepAlive is a session feature to enable keep alive handler
// for better load management on vSphere api server
EnableKeepAlive bool

// LeaderElectionID is the name of the config map to use as the
// locking resource when configuring leader election.
LeaderElectionID string
Expand Down Expand Up @@ -98,10 +102,6 @@ type Options struct {
// endpoints.
Password string

// EnableKeepAlive is a session feature to enable keep alive handler
// for better load management on vSphere api server
EnableKeepAlive bool

// KeepAliveDuration is the idle time interval in between send() requests
// in keepalive handler
KeepAliveDuration time.Duration
Expand Down
5 changes: 2 additions & 3 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Session struct {

type GetOrCreateContext struct {
context context.Context
logger logr.Logger
logger logr.Logger
}

func NewGetOrCreateContext(ctx context.Context, logger logr.Logger) GetOrCreateContext {
Expand All @@ -57,9 +57,8 @@ func NewGetOrCreateContext(ctx context.Context, logger logr.Logger) GetOrCreateC
}
}


type Feature struct {
EnableKeepAlive bool
EnableKeepAlive bool
KeepAliveDuration time.Duration
}

Expand Down

0 comments on commit 3f1b993

Please sign in to comment.