streamr-dev / network

Monorepo containing all the main components of Streamr Network.
574 stars 38 forks source link

refactor(sdk): Move storage node caching to `StreamStorageRegistry` #2878

Closed teogeb closed 3 hours ago

teogeb commented 1 day ago

Moved the caching of storage nodes from OrderMessages to StremStorageRegistry. This way the implementation is unified with StreamRegistry (which caches permissions and metadata information).

Functionality changes

As StremStorageRegistry#getStorageNodes() is now cached, all callers of that method receive cached data: