File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ limitations under the License.
2121package datastore
2222
2323import (
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 ),
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ limitations under the License.
1717package datastore
1818
1919import (
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 != "" {
You can’t perform that action at this time.
0 commit comments