You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ma...@apache.org on 2022/10/31 03:07:27 UTC

[incubator-eventmesh] branch master updated: lambda replaced

This is an automated email from the ASF dual-hosted git repository.

majorhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e07259e lambda replaced
     new 969e1967 Merge pull request #2024 from keithxanshang/fix_patch_77lambdaplaced
8e07259e is described below

commit 8e07259e3a0c3e9add97be872d2038b40ce1f9bf
Author: keithxanshang <32...@qq.com>
AuthorDate: Sun Oct 30 16:47:12 2022 +0800

    lambda replaced
---
 .../protocol/cloudevents/resolver/grpc/GrpcMessageProtocolResolver.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/resolver/grpc/GrpcMessageProtocolResolver.java b/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/resolver/grpc/GrpcMessageProtocolResolver.java
index 2d31d232..ed7c94ee 100644
--- a/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/resolver/grpc/GrpcMessageProtocolResolver.java
+++ b/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/resolver/grpc/GrpcMessageProtocolResolver.java
@@ -211,7 +211,7 @@ public class GrpcMessageProtocolResolver {
                 .withExtension(ProtocolKey.PRODUCERGROUP, producerGroup)
                 .withExtension(ProtocolKey.TTL, ttl);
 
-            item.getPropertiesMap().forEach((k, v) -> eventBuilder.withExtension(k, v));
+            item.getPropertiesMap().forEach(eventBuilder::withExtension);
 
             cloudEvents.add(eventBuilder.build());
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org