Added a comment to (*Server).GetCurrentConcurrency()

This commit is contained in:
Dmitry Yu Okunev
2018-11-02 15:15:04 +02:00
committed by Erik Dubbelboer
parent 5684318399
commit 6b0a1c55ef
+4
View File
@@ -1716,6 +1716,10 @@ func (s *Server) ServeConn(c net.Conn) error {
var errHijacked = errors.New("connection has been hijacked")
// GetCurrentConcurrency returns a number of currently served
// connections.
//
// This function is intended be used by monitoring systems
func (s *Server) GetCurrentConcurrency() uint32 {
return atomic.LoadUint32(&s.concurrency)
}