Not injecting manager anymore
@@ -82,7 +82,7 @@ func main() {
log.Panic(err)
}
- transport := oauth.NewAwareTransport(manager, oAuthServersRepo, statsClient)
+ transport := oauth.NewAwareTransport(statsClient, storage, oAuthServersRepo)
p := proxy.WithParams(proxy.Params{
Transport: transport,
FlushInterval: globalConfig.BackendFlushInterval,
@@ -94,10 +94,10 @@ func main() {
// create proxy register
register := proxy.NewRegister(r, p)
- apiLoader := api.NewLoader(register, storage, accessor, manager, globalConfig.Debug)
+ apiLoader := api.NewLoader(register, storage, oAuthServersRepo, accessor, globalConfig.Debug)
apiLoader.Load()
- oauthLoader := oauth.NewLoader(register, manager, accessor, globalConfig.Debug)
+ oauthLoader := oauth.NewLoader(register, storage, accessor, globalConfig.Debug)
oauthLoader.Load()
// create authentication for Janus
