adorsys / didcomm-mediator-rs

Simple mediator for DIDComm Messaging v2
Apache License 2.0
3 stars 0 forks source link

Save data in mediator-coordination plugin to avoid repeating operations during mount #145

Closed IngridPuppet closed 1 month ago

IngridPuppet commented 3 months ago

With the new changes merged to main, the mount method now accepts a mutable reference to self, allowing to save this information during mounting, and simply reuse it here. Update to avoid the duplicate call to load_plugin_env. Also applies to load_mongo_connector.

IngridPuppet commented 3 months ago

@Christiantyemele says:

can't find a better way to refactor this without creating global variables which may create some overheads