Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lock sendMutex to ensure thread safety in Send
Added a mutex lock and unlock around the Send function to prevent concurrent access issues and ensure thread safety. This change helps avoid race conditions when multiple goroutines attempt to send messages simultaneously.
- Loading branch information