diff --git a/pkg/gofr/datasource/mongo/mongo.go b/pkg/gofr/datasource/mongo/mongo.go index cd43d5d10..b3b633e03 100644 --- a/pkg/gofr/datasource/mongo/mongo.go +++ b/pkg/gofr/datasource/mongo/mongo.go @@ -54,6 +54,8 @@ i.e. by default observability features gets initialized when used with GoFr. // client.UseLogger(loggerInstance) // client.UseMetrics(metricsInstance) // client.Connect(). + +//nolint:gocritic // Configs must not be passed by reference func New(c Config) *Client { return &Client{config: &c} }