// Wait blocks the server goroutine until it exits.
// It sends an error message if there is any error during
// the API execution.
Wait blocks the server goroutine until it exits.
It sends an error message if there is any error during
the API execution.
// Wait blocks the server goroutine until it exits . // It sends an error message if there is any error during // the API execution .
func (s *Server) Wait(waitChan chan error) {
	if err := s.serve(); err != nil {
		logrus.Errorf("ServeAPI error: %v", err)
		waitChan <- err
		return
	}
	waitChan <- nil
}
func ( s * Server ) Wait ( waitChan chan error ) { if err := s . serve ( ) ; err != nil { logrus . Errorf ( " " , err ) waitChan <- err return } waitChan <- nil }
Wait blocks the server goroutine until it exits.
Wait blocks the server goroutine until it exits .