File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,6 @@ func (g *Gateway) Run(ctx context.Context) error {
266266
267267 if err := g .reloadConfiguration (ctx , configuration , nil , nil ); err != nil {
268268 logf ("> Unable to list capabilities: %s" , err )
269- // TODO: set g.configuration?
270269 g .configuration = configuration
271270 continue
272271 }
@@ -426,18 +425,12 @@ func (g *Gateway) startProvider(ctx context.Context, serverName string) {
426425
427426 // Create reload function for this provider
428427 reloadFn := func (ctx context.Context , name string ) error {
429- // Read fresh configuration to handle dynamically added servers
430- // config, _, _, err := g.configurator.Read(ctx)
431- // if err != nil {
432- // return err
433- // }
434-
435428 logf ("> Reloading OAuth server: %s" , name )
436429
437430 // Close old client connection with stale token
438431 g .clientPool .InvalidateOAuthClients (name )
439432
440- // Reload all servers (only the invalidated one actually reconnects)
433+ // Reload server configuration
441434 if err := g .reloadServerConfiguration (ctx , name , nil ); err != nil {
442435 return err
443436 }
You can’t perform that action at this time.
0 commit comments