mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
Add concurrent_request and concurrent_strategy in config_defaults
This commit is contained in:
committed by
Dan Christian Bogos
parent
841264a97a
commit
758d944418
@@ -52,6 +52,8 @@ const CGRATES_CFG_JSON = `
|
||||
"digest_equal": ":", // equal symbol used in case of digests
|
||||
"rsr_separator": ";", // separator used within RSR fields
|
||||
"max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
|
||||
"concurrent_requests": 0, // maximum concurrent request allowed ( 0 to disabled )
|
||||
"concurrent_strategy": "*queue", // strategy in case in case of concurrent requests reached
|
||||
},
|
||||
|
||||
|
||||
|
||||
@@ -62,6 +62,8 @@ func TestDfGeneralJsonCfg(t *testing.T) {
|
||||
Digest_equal: utils.StringPointer(":"),
|
||||
Rsr_separator: utils.StringPointer(";"),
|
||||
Max_parallel_conns: utils.IntPointer(100),
|
||||
Concurrent_requests: utils.IntPointer(0),
|
||||
Concurrent_strategy: utils.StringPointer(utils.MetaQueue),
|
||||
}
|
||||
if gCfg, err := dfCgrJSONCfg.GeneralJsonCfg(); err != nil {
|
||||
t.Error(err)
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
// "digest_equal": ":", // equal symbol used in case of digests
|
||||
// "rsr_separator": ";", // separator used within RSR fields
|
||||
// "max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
|
||||
// "concurrent_requests": 0, // maximum concurrent request allowed ( 0 to disabled )
|
||||
// "concurrent_strategy": "*queue", // strategy in case in case of concurrent requests reached
|
||||
// },
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user