noosphere icon indicating copy to clipboard operation
noosphere copied to clipboard

C FFI to change the gateway URL on a per-sphere context basis (without re-initializing Noosphere)

Open bfollington opened this issue 2 years ago • 1 comments

After landing https://github.com/subconsciousnetwork/subconscious/pull/755 to fix https://github.com/subconsciousnetwork/subconscious/issues/693 we realised that we can avoid having to deinit and reinit Noosphere at all if we introduce a new FFI method to update the gateway URL and rebuild the relevant internal Noosphere state.

bfollington avatar Jun 29 '23 22:06 bfollington

Here is how we support this in the underlying Rust API:

https://github.com/subconsciousnetwork/noosphere/blob/8b806c5462b5601a5f8417a6a20769b76b57ee6a/rust/noosphere-sphere/src/context.rs#L155-L168

cdata avatar Jun 29 '23 22:06 cdata