Make linters happy and disable deprecated exhaustivestruct.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-29 13:00:38 +05:00
parent 9d5d5c262e
commit dc1287dae8
8 changed files with 13 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ type Application struct {
// NewApplication creates new application.
func NewApplication(ctx context.Context, name string, config *Config, logger *logger.Logger) *Application {
// Some variables are initialized in initialize() function.
// nolint:exhaustivestruct
// nolint:exhaustruct
app := &Application{
config: config,
ctx: ctx,

View File

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