Skip to content

Commit

Permalink
fix apache/camel-k#1119: removing unneeded wrapper for reply processor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro authored and lburgazzoli committed Dec 13, 2019
1 parent e88731e commit 5fd7e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public Producer createProducer() throws Exception {
public Consumer createConsumer(Processor processor) throws Exception {
final KnativeEnvironment.KnativeServiceDefinition service = lookupServiceDefinition(Knative.EndpointKind.source);
final Processor ceProcessor = cloudEvent.consumer(this, service);
final Processor replyProcessor = new KnativeReplyProcessor(this, service, cloudEvent, configuration.isReplyWithCloudEvent());
Processor replyProcessor = null;
if (configuration.isReplyWithCloudEvent()) {
replyProcessor = cloudEvent.producer(this, service);
}
final Processor pipeline = Pipeline.newInstance(getCamelContext(), ceProcessor, processor, replyProcessor);
final Consumer consumer = getComponent().getTransport().createConsumer(this, createTransportConfiguration(), service, pipeline);

Expand Down

This file was deleted.

0 comments on commit 5fd7e2f

Please sign in to comment.