Open JoeCqupt opened 4 weeks ago
The changes involve modifications to the stop(Runnable)
methods in three classes: DataServerInitializer
, MetaServerInitializerConfiguration
, and SessionServerInitializer
. Each method has been updated to call a centralized stop()
method instead of executing a provided Runnable
. This streamlines the stopping process by consolidating the logic for setting the running state and performing necessary cleanup actions, while the start()
methods and other functionalities remain unchanged.
File | Change Summary |
---|---|
.../DataServerInitializer.java |
Updated stop(Runnable runnable) to stop() , centralizing stopping logic. |
.../MetaServerInitializerConfiguration.java |
Modified stop(Runnable callback) to call stop() , consolidating state management logic. |
.../SessionServerInitializer.java |
Changed stop(Runnable callback) to invoke stop() , streamlining stopping procedure. |
🐇 In the server's quiet night,
A change made stopping right,
No more callbacks to run,
Just one method, now it's fun!
With logic clear and neat,
Our servers rest, a job complete! 🌙
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Motivation:
fix SmartLifecycle#stop
Modification:
fix SmartLifecycle#stop
Result:
fix SmartLifecycle#stop
Summary by CodeRabbit
Bug Fixes
stop()
method, enhancing consistency and reliability during shutdown.Refactor
stop
method implementations across multiple server initializer classes to improve code maintainability and reduce redundancy.