Closed miraclx closed 3 years ago
After some digging into the code, a Result::Err
was returned by isahc
because of the reinitialization of HTTP clients for every task which isahc
itself warns against as it's expensive and inefficient docs.rs [isahc::HttpClient]
A fix for this would be statically creating a crate-wide instantiation of the Client
that's shared across all tasks.
Yeah good call, I'll add that to the api crate. It's interesting because I had this same too many files open error early last year when I first started this project, but it was an upstream bug with the crossterm crate we use. I was originally thinking iti might be from that again.
Thanks for digging into this!
All good man! I already have a fix locally
I'll setup a PR now
Awesome! I'll check this out and the other things tomorrow. I assume this was fixed by the PR? How many tabs did you create before getting the panic?
Great. Not a lot of tabs actually. Just kept switching time frames in the summary view of 4 tickers to see how well and fast it can keep up.