Fix broken initialization
This commit is contained in:
6
main.go
6
main.go
@@ -262,11 +262,9 @@ func Start(props *MongoStartProps) error {
|
|||||||
UseJSONStructTags: false,
|
UseJSONStructTags: false,
|
||||||
NilSliceAsEmpty: true,
|
NilSliceAsEmpty: true,
|
||||||
NilMapAsEmpty: true,
|
NilMapAsEmpty: true,
|
||||||
}).
|
|
||||||
SetRegistry(GetCustomRegistry()).
|
|
||||||
SetBSONOptions(&options.BSONOptions{
|
|
||||||
AllowTruncatingDoubles: props.AllowTruncatingDoubles,
|
AllowTruncatingDoubles: props.AllowTruncatingDoubles,
|
||||||
})
|
}).
|
||||||
|
SetRegistry(GetCustomRegistry())
|
||||||
|
|
||||||
client.DebugQuery = props.MongoDebugQuery
|
client.DebugQuery = props.MongoDebugQuery
|
||||||
if client.DebugQuery {
|
if client.DebugQuery {
|
||||||
|
|||||||
Reference in New Issue
Block a user