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

@@ -23,7 +23,7 @@ type Client struct {
// NewClient creates new Metricator client.
func NewClient(config *Config, logger *logger.Logger) *Client {
// nolint:exhaustivestruct
// nolint:exhaustruct
client := &Client{
config: config,
logger: logger,
@@ -140,7 +140,7 @@ func (c *Client) GetMetricsList(appName string) schema.Metrics {
// Initializes internal states and storages.
func (c *Client) initialize() {
// We do not need to set everything for client actually, so:
// nolint:exhaustivestruct
// nolint:exhaustruct
c.httpClient = &http.Client{
Timeout: time.Second * time.Duration(c.config.Timeout),
}