Little linting fixes.

This commit is contained in:
Stanislav Nikitin 2020-11-29 05:52:52 +05:00
parent aaaebaa95a
commit f5d898b025
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ func (a *Application) fetch() {
func (a *Application) startFetcher() {
fetchTicker := time.NewTicker(a.config.TimeBetweenRequests)
// nolint:exaustivestruct
// nolint:exhaustivestruct
a.httpClient = &http.Client{
Timeout: time.Second * 5,
}

View File

@ -41,7 +41,7 @@ func (h *HTTPServer) getRequestContext(_ net.Listener) context.Context {
func (h *HTTPServer) initialize() {
h.handler = &handler{}
// We do not need to specify all possible parameters for HTTP server, so:
// nolint:exaustivestruct
// nolint:exhaustivestruct
h.server = &http.Server{
// ToDo: make it all configurable.
Addr: ":34421",