Skip to content

Commit 2545698

Browse files
committed
linter
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 4917941 commit 2545698

File tree

1 file changed

+7
-8
lines changed
  • docs/proposals/0845-scheduler-architecture-proposal/interfaces

1 file changed

+7
-8
lines changed

docs/proposals/0845-scheduler-architecture-proposal/interfaces/interface.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ type Endpoint struct {
2828

2929
type EndpointState struct {
3030
// storage is per Scheduling Cycle, and so has no thread-safe concerns.
31-
// TODO should think if the above is true or should we use sync map for thread safety.
32-
storage map[string]any
31+
storage map[string]any //nolint:unused
3332
}
3433

3534
// Request is a structured representation of the fields we parse out of the Request body.
@@ -61,22 +60,22 @@ type Scheduler struct {
6160
// the configuration file should include the ProfileHandler plugin as well as the profiles with their plugins.
6261
type SchedulerConfig struct {
6362
// exactly one ProfileHandler instance is required.
64-
profileHandler ProfileHandler
63+
profileHandler ProfileHandler //nolint:unused
6564
// map from profile name to its set of plugins.
66-
profiles map[string]*SchedulerProfile
65+
profiles map[string]*SchedulerProfile //nolint:unused
6766
}
6867

6968
// SchedulerProfile is used to describe a profile that will
7069
// run for a given scheduling cycle.
7170
type SchedulerProfile struct {
7271
// Filters lists all Filter plugins associated with this Profile.
7372
// Filters are optional.
74-
filters []Filter
73+
filters []Filter //nolint:unused
7574
// Scorers lists all Score plugins associated with this Profile.
7675
// Scorers are optional.
77-
scorers []*WeightedScorer
76+
scorers []*WeightedScorer //nolint:unused
7877
// Picker returns the function that picks the endpoint(s). Picker is required.
79-
picker Picker
78+
picker Picker //nolint:unused
8079
}
8180

8281
type SchedulingResult struct {
@@ -132,7 +131,7 @@ type Scorer interface {
132131
// Using a map is much less convenient for this purpose.
133132
type WeightedScorer struct {
134133
Scorer
135-
weight int
134+
weight int //nolint:unused
136135
}
137136

138137
// Picker selects the endpoint(s) from the provided list of scored endpoints.

0 commit comments

Comments
 (0)