Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2024-05-23 04:25:01 +08:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -757,6 +757,8 @@ __WFKafkaTask *__WFKafkaTaskFactory::create_kafka_task(const char *host,
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);
+2
View File
@@ -495,6 +495,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);