mcp connection
This commit is contained in:
@@ -65,10 +65,14 @@ func run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// The sweeper's context is cancelled by the same signal that stops the
|
||||
// server, so the ticker goes away with the process rather than outliving
|
||||
// the pool it queries.
|
||||
// The sweepers' context is cancelled by the same signal that stops the
|
||||
// server, so the tickers go away with the process rather than outliving
|
||||
// the pool they query.
|
||||
go sweepSessions(ctx, server.Sessions(), log)
|
||||
// OAuth codes and tokens, and the rate-limit counters. Returns immediately
|
||||
// when the deployment does not serve MCP, so this line costs an unconfigured
|
||||
// deployment one nil check at startup and nothing after.
|
||||
go httpserver.SweepMaintenance(ctx, server.Maintenance(), log)
|
||||
|
||||
errCh := make(chan error, 1)
|
||||
go func() { errCh <- server.Start() }()
|
||||
|
||||
Reference in New Issue
Block a user