Since #129 is not feasible, we want to at least make sure that squid closes the connection again when it uses ApiPromise to fetch foreign asset metadata.
Currently, it reconnects every time and might leave the connection dangling.
It would be good if we can reduce the use of ApiPromise to be replaced by using the storage accessor methods for squid (however, squids generic storage accessor does not read entry maps with id and value fields), or use the lib instance.
Since #129 is not feasible, we want to at least make sure that squid closes the connection again when it uses
ApiPromise
to fetch foreign asset metadata. Currently, it reconnects every time and might leave the connection dangling.It would be good if we can reduce the use of ApiPromise to be replaced by using the storage accessor methods for squid (however, squids generic storage accessor does not read entry maps with id and value fields), or use the lib instance.