UPdated mongo storage function

This commit is contained in:
adi
2022-10-05 13:33:19 +03:00
committed by Dan Christian Bogos
parent 6907428eb6
commit 8db98f1408

View File

@@ -157,7 +157,7 @@ func DecimalDecoder(ec bsoncodec.DecodeContext, vw bsonrw.ValueReader, val refle
func NewMongoStorage(host, port, db, user, pass, mrshlerStr, storageType string,
cdrsIndexes []string, ttl time.Duration) (ms *MongoStorage, err error) {
url := host
if port != "" {
if port != "0" {
url += ":" + port
}
if user != "" && pass != "" {