mirror of
https://github.com/sogou/workflow.git
synced 2026-10-17 04:31:07 +08:00
Fix URI parsed failed bug.
This commit is contained in:
@@ -774,6 +774,8 @@ __WFKafkaTask *__WFKafkaTaskFactory::create_kafka_task(enum TransportType type,
|
||||
uri.state = URI_STATE_ERROR;
|
||||
uri.error = errno;
|
||||
}
|
||||
else
|
||||
uri.state = URI_STATE_SUCCESS;
|
||||
|
||||
task->init(std::move(uri));
|
||||
task->set_keep_alive(KAFKA_KEEPALIVE_DEFAULT);
|
||||
|
||||
@@ -506,6 +506,8 @@ WFNetworkTaskFactory<REQ, RESP>::create_client_task(enum TransportType type,
|
||||
uri.state = URI_STATE_ERROR;
|
||||
uri.error = errno;
|
||||
}
|
||||
else
|
||||
uri.state = URI_STATE_SUCCESS;
|
||||
|
||||
task->init(std::move(uri));
|
||||
task->set_transport_type(type);
|
||||
|
||||
Reference in New Issue
Block a user