-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error handling and graceful shutdown in server
Added an error channel to the server struct to enhance error management during startup and shutdown. Refactored shutdown logic to handle context cancellation and improve error reporting. Updated tests to validate graceful shutdown and error handling scenarios.
- Loading branch information
1 parent
bbaf108
commit 90b3f84
Showing
2 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters