mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Added Opts to ERs
This commit is contained in:
committed by
Dan Christian Bogos
parent
8f638b5b85
commit
6c10cf0960
@@ -270,11 +270,11 @@ func BenchmarkGuardian(b *testing.B) {
|
||||
// BenchmarkGuardIDs-8 1000000 8732 ns/op
|
||||
func BenchmarkGuardIDs(b *testing.B) {
|
||||
for n := 0; n < b.N; n++ {
|
||||
go func() {
|
||||
if refID := Guardian.GuardIDs("", 0, strconv.Itoa(n)); refID != "" {
|
||||
go func(i int) {
|
||||
if refID := Guardian.GuardIDs("", 0, strconv.Itoa(i)); refID != "" {
|
||||
time.Sleep(time.Microsecond)
|
||||
Guardian.UnguardIDs(refID)
|
||||
}
|
||||
}()
|
||||
}(n)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user