-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Offchain-worker: Make it possible to disable http support #10087
Conversation
If a chain doesn't require http support in its offchain workers, this pr enables them to disable the http support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, but we already have capabilities filtering though, so this adds yet another layer to the setup. I understand that we want to avoid starting the shared http client, but just pointing out that this a bit of a workaround.
Have you considered compilation features instead? It would be perfectly fine to leave http
requests enabled and just disable https
from the shared client.
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
@tomusdrw I now switched to the |
…ubstrate into bkchr-offchain-disable-http
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
…#10087) * Offchain-worker: Make it possible to disable http support If a chain doesn't require http support in its offchain workers, this pr enables them to disable the http support. * Switch to bitflags * Use Capabilities * Update client/offchain/src/lib.rs Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Fix test * Update client/offchain/src/lib.rs Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
…#10087) * Offchain-worker: Make it possible to disable http support If a chain doesn't require http support in its offchain workers, this pr enables them to disable the http support. * Switch to bitflags * Use Capabilities * Update client/offchain/src/lib.rs Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Fix test * Update client/offchain/src/lib.rs Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
If a chain doesn't require http support in its offchain workers, this pr enables them to disable the
http support.
Closes: #9984