Make linters happy and disable deprecated exhaustivestruct.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user