Skip to content

Commit 5439a05

Browse files
committed
Remove unused
1 parent 8912f2d commit 5439a05

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/gateway/run.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)