Skip to content

Commit fa85db0

Browse files
authored
Fix URI parsed failed bug. (#1561)
1 parent c2eb095 commit fa85db0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/factory/KafkaTaskImpl.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ __WFKafkaTask *__WFKafkaTaskFactory::create_kafka_task(enum TransportType type,
774774
uri.state = URI_STATE_ERROR;
775775
uri.error = errno;
776776
}
777+
else
778+
uri.state = URI_STATE_SUCCESS;
777779

778780
task->init(std::move(uri));
779781
task->set_keep_alive(KAFKA_KEEPALIVE_DEFAULT);

src/factory/WFTaskFactory.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ WFNetworkTaskFactory<REQ, RESP>::create_client_task(enum TransportType type,
508508
uri.state = URI_STATE_ERROR;
509509
uri.error = errno;
510510
}
511+
else
512+
uri.state = URI_STATE_SUCCESS;
511513

512514
task->init(std::move(uri));
513515
task->set_transport_type(type);

0 commit comments

Comments
 (0)