Skip to content

Commit ed0f30b

Browse files
committed
fix linter error
Signed-off-by: Lionel Villard <[email protected]>
1 parent b14b7b4 commit ed0f30b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cmd/activator/runner/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func Run(ctx context.Context) error {
9898
}
9999

100100
// --- Setup Datastore ---
101-
datastore := datastore.NewDatastore(ctx)
101+
datastore := datastore.NewDatastore()
102102

103103
// --- Setup Activator ---
104104
activator, err := requestcontrol.NewActivatorWithConfig(cfg, datastore)

pkg/activator/datastore/datastore.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ limitations under the License.
2121
package datastore
2222

2323
import (
24-
"context"
2524
"errors"
2625
"sync"
2726
"time"
@@ -50,7 +49,7 @@ type Datastore interface {
5049
}
5150

5251
// NewDatastore creates a new Datastore instance with the provided parent context.
53-
func NewDatastore(parentCtx context.Context) Datastore {
52+
func NewDatastore() Datastore {
5453
store := &datastore{
5554
poolMu: sync.RWMutex{},
5655
ticker: time.NewTicker(60 * time.Second),

pkg/activator/datastore/datastore_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package datastore
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
"github.com/google/go-cmp/cmp"
@@ -65,7 +64,7 @@ func TestPool(t *testing.T) {
6564
scheme := runtime.NewScheme()
6665
_ = clientgoscheme.AddToScheme(scheme)
6766

68-
datastore := NewDatastore(context.Background())
67+
datastore := NewDatastore()
6968
datastore.PoolSet(tt.inferencePool)
7069
gotPool, gotErr := datastore.PoolGet()
7170
if diff := cmp.Diff(tt.wantErr, gotErr, cmpopts.EquateErrors()); diff != "" {

0 commit comments

Comments
 (0)