Fix comments
This commit is contained in:
parent
c9ee6655ca
commit
356e6cd8db
5 changed files with 8 additions and 8 deletions
|
|
@ -171,7 +171,7 @@ func (s *Server) ListenAndServe(addr string) error {
|
|||
|
||||
// Close stops the background load-average sampler goroutine. It is safe to
|
||||
// call multiple times; subsequent calls are no-ops. Close does not shut down
|
||||
// any underlying http.Server — callers own that lifecycle.
|
||||
// any underlying http.Server, callers own that lifecycle.
|
||||
func (s *Server) Close() error {
|
||||
s.closeOnce.Do(func() {
|
||||
s.cancelSampler()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue