id on peer

This commit is contained in:
mr
2024-08-20 12:20:30 +02:00
parent 9e795d795c
commit 8751d36b34
2 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,9 @@ func (m *MongoDB) Init(collections []string, config MongoConf) {
}
func (m *MongoDB) createClient(MongoURL string) error {
if mngoClient != nil {
return nil
}
var err error
// Allows us to use marshal and unmarshall with results of FindOne() and others
bsonOpts := &options.BSONOptions{