You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added Domain support for stream mirroring and sourcing and KV full support for the same. (#631)
* Added Sources and Mirror to KV Store Creation
* Removed the need for StreamSource.Domain
* Fixed trailing whitespace
* Whitespace fix for KeyValueStoreTest
* Added Domain support for stream sourcing.
* Test fix
* Keep caller's config intact.
* Test fix
* Remove unused import in StreamSource.cs
Deleted the 'System.Diagnostics.Metrics' import as it was not being used anywhere in the file. This change helps in maintaining a clean codebase with only necessary dependencies.
* Remove unused using directive
Deleted an unnecessary directive for System.Xml.Schema in NatsJSContext.cs. This cleanup aids in maintaining clean and efficient code.
* Refactor initialization logic for stream configuration.
Clean up redundant initializations and streamline the handling of `subjects`, `mirror`, and `sources` to improve code clarity. Ensure default assignments are explicitly defined within conditional branches for better code maintainability.
* Refactor mirror assignment with ShallowCopy method
Simplify the mirror object instantiation by using the ShallowCopy method, reducing code redundancy. This change improves readability and maintenance by encapsulating the cloning logic within the method.
* Refactor null and count check for config.Sources
Updated the conditional check for `config.Sources` to use pattern matching, improving readability and adhering to modern C# conventions. This change ensures cleaner and more maintainable code.
* Skip specific test for NATS servers earlier than v2.10
This commit updates the KeyValueStoreTest to skip the Test_CombinedSources test for NATS server versions earlier than 2.10 since some of the mirroring features are introduced with 2.10. It also removes unnecessary retry delay and timeout parameters from the test configuration.
* Use with syntax to clone
* Fix build warnings
* Fix build warnings and add test
* Fix test
---------
Co-authored-by: Ziya Suzen <ziya@suzen.net>
0 commit comments