@@ -18,6 +18,8 @@ import (
1818 "fmt"
1919 nethttp "net/http"
2020
21+ orchstorage "github.com/uber/submitqueue/submitqueue/orchestrator/extension/storage"
22+
2123 "github.com/uber-go/tally"
2224 "go.uber.org/zap"
2325 "golang.org/x/oauth2"
@@ -54,7 +56,6 @@ import (
5456 "github.com/uber/submitqueue/submitqueue/extension/speculation/scorer/heuristic"
5557 "github.com/uber/submitqueue/submitqueue/extension/speculation/speculator"
5658 specstandard "github.com/uber/submitqueue/submitqueue/extension/speculation/speculator/standard"
57- "github.com/uber/submitqueue/submitqueue/extension/storage"
5859)
5960
6061// Profile holds the per-queue extension implementations. Grouping them per
@@ -74,7 +75,7 @@ type Profile struct {
7475 // Storage resolves the queue-scoped store aggregate for this queue. Every
7576 // profile points at the shared backend by default; a deployment that
7677 // splits queues across storage backends overrides this per queue.
77- Storage storage .Factory
78+ Storage orchstorage .Factory
7879
7980 // Scorer holds this queue's ranking profile. There is no scoring stage: the
8081 // scorer feeds the queue's speculator, which ranks candidate paths by how
@@ -143,10 +144,10 @@ func (p Profiles) ScorerFactory() scorer.Factory {
143144 })
144145}
145146
146- // StorageFactory returns a storage .Factory that routes each queue to its
147+ // StorageFactory returns a orchstorage .Factory that routes each queue to its
147148// profile's storage backend before binding the queue-scoped store aggregate.
148- func (p Profiles ) StorageFactory () storage .Factory {
149- return storageFunc (func (c storage .Config ) (storage .Storage , error ) {
149+ func (p Profiles ) StorageFactory () orchstorage .Factory {
150+ return storageFunc (func (c orchstorage .Config ) (orchstorage .Storage , error ) {
150151 return p .For (c .QueueName ).Storage .For (c )
151152 })
152153}
@@ -169,9 +170,9 @@ type analyzerFunc func(conflict.Config) (conflict.Analyzer, error)
169170
170171func (f analyzerFunc ) For (c conflict.Config ) (conflict.Analyzer , error ) { return f (c ) }
171172
172- type storageFunc func (storage .Config ) (storage .Storage , error )
173+ type storageFunc func (orchstorage .Config ) (orchstorage .Storage , error )
173174
174- func (f storageFunc ) For (c storage .Config ) (storage .Storage , error ) { return f (c ) }
175+ func (f storageFunc ) For (c orchstorage .Config ) (orchstorage .Storage , error ) { return f (c ) }
175176
176177type scorerFunc func (scorer.Config ) (scorer.Scorer , error )
177178
@@ -192,7 +193,7 @@ func newProfiles(
192193 logger * zap.Logger ,
193194 scope tally.Scope ,
194195 resolver changeset.Resolver ,
195- stores storage .Factory ,
196+ stores orchstorage .Factory ,
196197 cfg profilesConfig ,
197198) (Profiles , error ) {
198199 b := & profileBuilder {
@@ -245,7 +246,7 @@ type profileBuilder struct {
245246 logger * zap.Logger
246247 scope tally.Scope
247248 resolver changeset.Resolver
248- stores storage .Factory
249+ stores orchstorage .Factory
249250 built map [string ]any
250251}
251252
0 commit comments