Skip to content

Commit bc4c38d

Browse files
authored
Update client.go
1 parent 8051092 commit bc4c38d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mongo/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ func newClient(cs connstring.ConnString, opts ...*options.ClientOptions) (*Clien
202202
topology.WithServerOptions(func(opts ...topology.ServerOption) []topology.ServerOption {
203203
return append(opts, topology.WithClock(func(clock *session.ClusterClock) *session.ClusterClock {
204204
return client.clock
205+
}), topology.WithRegistry(func(registry *bsoncodec.Registry) *bsoncodec.Registry {
206+
return client.registry
205207
}))
206208
}),
207209
)

0 commit comments

Comments
 (0)