Closed Cristhianzl closed 5 days ago
I did it first hahah #4708
Comparing cz/fix-async-call-lf-version
(3546a82) with main
(25a0d76)
⚡ 2
improvements
❌ 2
regressions
✅ 11
untouched benchmarks
:warning: Please fix the performance issues or acknowledge them on CodSpeed.
Benchmark | main |
cz/fix-async-call-lf-version |
Change | |
---|---|---|---|---|
⚡ | test_successful_run_with_input_type_any |
297.8 ms | 220.6 ms | +35.01% |
⚡ | test_successful_run_with_input_type_text |
297 ms | 218.9 ms | +35.67% |
❌ | test_successful_run_with_output_type_any |
219.5 ms | 5,220.5 ms | -95.8% |
❌ | test_successful_run_with_output_type_debug |
138.8 ms | 217.3 ms | -36.14% |
This pull request includes a small but important change to the
get_lf_version_from_pypi
function in thesrc/backend/base/langflow/services/store/utils.py
file. The change ensures that the HTTP request to retrieve the version information from PyPI is awaited correctly.src/backend/base/langflow/services/store/utils.py
: Modified theget_lf_version_from_pypi
function to await the HTTP request usingawait client.get
to ensure proper asynchronous behavior.