This is an automated email from the ASF dual-hosted git repository.
mikexue 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 b3b3e2a47 simplify code
new 7cf72ba15 Merge pull request #2552 from
weihubeats/WebHookProtocolAdaptor
b3b3e2a47 is described below
commit b3b3e2a475c388f06d5f9633b794337fc8c41ad7
Author: weihu <[email protected]>
AuthorDate: Sun Dec 11 11:42:29 2022 +0800
simplify code
---
.../apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
b/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
index e541f69aa..b63666a18 100644
---
a/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
+++
b/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
@@ -54,13 +54,12 @@ public class WebHookProtocolAdaptor implements
ProtocolAdaptor<WebhookProtocolTr
}
@Override
- public List<CloudEvent> toBatchCloudEvent(WebhookProtocolTransportObject
protocol) throws ProtocolHandleException {
- List<CloudEvent> cloudEventList = new ArrayList<CloudEvent>();
- return cloudEventList;
+ public List<CloudEvent> toBatchCloudEvent(WebhookProtocolTransportObject
protocol) {
+ return new ArrayList<>();
}
@Override
- public ProtocolTransportObject fromCloudEvent(CloudEvent cloudEvent)
throws ProtocolHandleException {
+ public ProtocolTransportObject fromCloudEvent(CloudEvent cloudEvent) {
final HttpEventWrapper httpEventWrapper = new HttpEventWrapper();
Map<String, Object> sysHeaderMap = new HashMap<>();
// ce attributes
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]