Previously, the (*Server).Start function was returning all errors from (*Server).newWorker, including the "Worker quit gracefully" error. This change modifies the error handling to ignore the ErrWorkerQuitGracefully error, as a graceful exit should not be treated as an error condition.
Only return errors that are not ErrWorkerQuitGracefully.
Improve error handling logic in worker creation process.
Previously, the
(*Server).Start
function was returning all errors from(*Server).newWorker
, including the"Worker quit gracefully"
error. This change modifies the error handling to ignore the ErrWorkerQuitGracefully error, as a graceful exit should not be treated as an error condition.