Skip to content

check if the system is being replaced before throwing an error#348

Open
kalynstricklin wants to merge 1 commit intoopensensorhub:masterfrom
kalynstricklin:datastream-replace-on-rename
Open

check if the system is being replaced before throwing an error#348
kalynstricklin wants to merge 1 commit intoopensensorhub:masterfrom
kalynstricklin:datastream-replace-on-rename

Conversation

@kalynstricklin
Copy link
Copy Markdown

When renaming a system, the module restarts and reregisters its datastreams/controlstreams. The InMemoryDataStreamStore.put() and the InMemoryCommandStream.put() calls a duplicate error even when updating the same key. This fix checks if the replace & key match before throwing the error.

@kalynstricklin kalynstricklin changed the title check if the datastream is being replaced before throwing an error check if the system is being replaced before throwing an error Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant