Skip to content

Commit 831b2d5

Browse files
committed
change plugin logic
1 parent 16d22b3 commit 831b2d5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ func (f *myFilter) Configure(data map[string]interface{}) error {
2929
}
3030

3131
func (f *myFilter) Filter(msg *core.Msg) (bool, error) {
32-
msg.DmlMsg.Data["v"] = 100
32+
for k := range msg.DmlMsg.Data {
33+
msg.DmlMsg.Data[k] = "hello grpc"
34+
}
35+
3336
return true, nil
3437
}
3538

0 commit comments

Comments
 (0)