feat: add in-memory RPC runtime stats SSE endpoint

This commit is contained in:
line-6000
2026-06-10 00:18:24 +08:00
parent 54b83f8b16
commit 08d409d5eb
161 changed files with 1268 additions and 235 deletions
+1
View File
@@ -77,6 +77,7 @@ func setupTestEnv(t *testing.T) *echo.Echo {
// reset the settings cache so stale entries from a prior test don't leak
_ = data.ReloadSettings()
data.ResetRpcRuntimeStatsForTest()
config.SettingsGetString = func(key string) string {
return data.GetSettingString(key, "")
}