diff --git a/example/webapp/main.go b/example/webapp/main.go index ffb9830..035f095 100644 --- a/example/webapp/main.go +++ b/example/webapp/main.go @@ -483,13 +483,12 @@ func handleIndex(w http.ResponseWriter, r *http.Request) { // 初始化 loadTopics(); - // 不再自动刷新 topics 列表 + // 只自动刷新统计信息,不刷新日志 setInterval(() => { if (currentTopic) { loadStats(currentTopic); - loadLogs(); } - }, 3000); // 每 3 秒刷新日志 + }, 3000); // 每 3 秒刷新统计 `