Skip to content

Commit 70bdbd0

Browse files
committed
Update.
1 parent 799cbe1 commit 70bdbd0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

service/singleton/singleton.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,6 +2187,17 @@ func AsyncDBInsert(table string, data map[string]interface{}, callback func(erro
21872187
}()
21882188
}
21892189

2190+
// AsyncBatchMonitorHistoryInsert 异步批量插入监控历史记录
2191+
func AsyncBatchMonitorHistoryInsert(data map[string]interface{}, callback func(error)) {
2192+
// 使用简化的方式直接调用AsyncDBInsert,避免过度复杂化
2193+
AsyncDBInsert("monitor_histories", data, callback)
2194+
}
2195+
2196+
// AsyncMonitorHistoryInsert 异步插入监控历史记录 - 兼容性函数
2197+
func AsyncMonitorHistoryInsert(data map[string]interface{}, callback func(error)) {
2198+
AsyncDBInsert("monitor_histories", data, callback)
2199+
}
2200+
21902201
// 数据库连接池监控函数 - 实际实现
21912202
func StartConnectionPoolMonitor() {
21922203
if Conf.DatabaseType == "badger" {

0 commit comments

Comments
 (0)