mirror of
https://gitee.com/rulego/streamsql.git
synced 2026-05-22 03:14:31 +00:00
refactor:Emit入参从interface{} 改成 map[string]interface{};AddSink(func(results interface{})改成AddSink(func(results []map[string]interface{})
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user