mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 22:29:55 +05:00
UPdated mongo storage function
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user