You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now lumos indexer uses JSONRPC client library as used in ckb-indexer. But one problem with this library, is that it is hardcoded with hyper::rt, which makes it impossible to swap runtime. To make matters worse, hyper::rt uses a tokio in a mode that forbids running on a single core machine.
Since we only need JSONRPC for one API, it won't be a problem for us to build the specific code we need on a plain HTTP library, which would has better async/await support, such as surf.
The text was updated successfully, but these errors were encountered:
Right now lumos indexer uses JSONRPC client library as used in ckb-indexer. But one problem with this library, is that it is hardcoded with
hyper::rt
, which makes it impossible to swap runtime. To make matters worse,hyper::rt
uses a tokio in a mode that forbids running on a single core machine.Since we only need JSONRPC for one API, it won't be a problem for us to build the specific code we need on a plain HTTP library, which would has better async/await support, such as surf.
The text was updated successfully, but these errors were encountered: