subsquid / worker-rs

GNU Affero General Public License v3.0
0 stars 1 forks source link

Remove transport abstraction and use separate controllers #9

Closed kalabukdima closed 5 months ago

kalabukdima commented 5 months ago

Removed the abstract Transport in favor of separate HttpController and P2PController. They both own a reference to the Worker that handles query execution and downloads. It also allowed to unify HTTP interface for both scenarios. However, in the P2P case the /query endpoint will always return NoAllocation error to avoid free execution.

What still needs to be done:

Wiezzel commented 5 months ago

@kalabukdima StateManager::run() is never called, so the worker doesn't download anything. 😢