Skip to content

Conversation

@teogeb
Copy link
Contributor

@teogeb teogeb commented Nov 19, 2024

Changed these StreamrClient methods to use cached StreamRegistry data:

  • getStream()
  • isStreamPublisher()
  • isStreamSubscriber()

Before these PRs explicitly bypassed the cache. Therefore it was possible that these methods saw different state for metadata and permissions than other components of the SDK.

It is better that the whole SDK uses consistent state. Now that is achieved by using cached StreamRegistry data by all components.

Future improvements

  • Maybe we could add a public API method for invalidating the caches?

@github-actions github-actions bot added the sdk label Nov 19, 2024
@teogeb teogeb merged commit 755dcd2 into main Nov 20, 2024
23 checks passed
@teogeb teogeb deleted the sdk-consistent-state-for-metadata-and-permissions branch November 20, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants