[#1320] English Check

Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
Elizaveta Chichindaeva 2022-04-21 14:28:05 +03:00 committed by LeL
parent d99800ee93
commit cc7a723d77
182 changed files with 802 additions and 802 deletions

View file

@ -6,13 +6,13 @@ import (
"net/http"
)
// Serve listens and serves internal HTTP server.
// Serve listens and serves the internal HTTP server.
//
// Returns any error returned by internal server
// Returns any error returned by the internal server
// except http.ErrServerClosed.
//
// After Shutdown call, Serve has no effect and
// returned error is always nil.
// the returned error is always nil.
func (x *Server) Serve() error {
err := x.srv.ListenAndServe()
@ -25,10 +25,10 @@ func (x *Server) Serve() error {
return err
}
// Shutdown gracefully shuts down internal HTTP server.
// Shutdown gracefully shuts down the internal HTTP server.
//
// Shutdown is called with context which expires after
// configured timeout.
// Shutdown is called with the context which expires after
// the configured timeout.
//
// Once Shutdown has been called on a server, it may not be reused;
// future calls to Serve method will have no effect.

View file

@ -17,7 +17,7 @@ func defaultCfg() *cfg {
}
}
// WithShutdownTimeout returns option to set shutdown timeout
// WithShutdownTimeout returns an option to set shutdown timeout
// of the internal HTTP server.
func WithShutdownTimeout(dur time.Duration) Option {
return func(c *cfg) {

View file

@ -22,7 +22,7 @@ type Prm struct {
}
// Server represents a wrapper over http.Server
// that provides interface to start and stop
// that provides an interface to start and stop
// listening routine.
//
// For correct operation, Server must be created