refactor:Emit入参从interface{} 改成 map[string]interface{};AddSink(func(results interface{})改成AddSink(func(results []map[string]interface{})

This commit is contained in:
rulego-team
2025-08-03 23:39:50 +08:00
parent 343d045554
commit 8ebd152ec9
37 changed files with 2127 additions and 1855 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ func testDataRecovery() {
// 添加sink来接收恢复的数据
recoveredCount := 0
stream.AddSink(func(data interface{}) {
stream.AddSink(func(data []map[string]interface{}) {
recoveredCount++
if recoveredCount <= 5 {
fmt.Printf("恢复数据 %d: %+v\n", recoveredCount, data)