diff --git a/x/mongo/driver/topology/server_options.go b/x/mongo/driver/topology/server_options.go index f6126a9edc..4272b3f751 100644 --- a/x/mongo/driver/topology/server_options.go +++ b/x/mongo/driver/topology/server_options.go @@ -196,8 +196,8 @@ func WithServerLoadBalanced(fn func(bool) bool) ServerOption { } } -// WithLogger configures the logger for the server to use. -func WithLogger(fn func() *logger.Logger) ServerOption { +// withLogger configures the logger for the server to use. +func withLogger(fn func() *logger.Logger) ServerOption { return func(cfg *serverConfig) { cfg.logger = fn() } diff --git a/x/mongo/driver/topology/topology_options.go b/x/mongo/driver/topology/topology_options.go index bfc35489ff..67e6cbf9fd 100644 --- a/x/mongo/driver/topology/topology_options.go +++ b/x/mongo/driver/topology/topology_options.go @@ -349,7 +349,7 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, serverOpts = append( serverOpts, - WithLogger(func() *logger.Logger { return log }), + withLogger(func() *logger.Logger { return log }), ) }