Skip to content

Commit 448a47b

Browse files
authored
chore(mcp): remove unused database timeout config (#2975)
Why this change was needed: The mcp-proxy database timeout setting is defined in config and shown in the sample config, but the database initialization path does not read it. Keeping it suggests a configurable behavior that does not exist. What changed: Removed the unused Database.Timeout field and the matching timeout entry from the mcp-proxy config template. Problem solved: The database config surface no longer exposes a dead timeout option.
1 parent 20ca4a7 commit 448a47b

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/mcp-proxy/config.yaml.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ databases:
2424
maxOpenConns: 200
2525
maxIdleConns: 50
2626
connMaxLifetimeSecond: 600
27-
timeout: 2
2827
# TLS配置(可选)
2928
tls:
3029
enabled: false

src/mcp-proxy/pkg/config/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ type Database struct {
102102
MaxOpenConns int
103103
MaxIdleConns int
104104
ConnMaxLifetimeSecond int
105-
// connect: s
106-
Timeout int
107105
// tls
108106
TLS TLS
109107
}

0 commit comments

Comments
 (0)