mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Update responder.go
Responder.GetDerivedMaxSessionTime proper reply caching, fixes #667.
This commit is contained in:
committed by
GitHub
parent
230670e687
commit
2a9aabf39f
@@ -380,8 +380,8 @@ func (rs *Responder) GetDerivedMaxSessionTime(ev *CDR, reply *float64) error {
|
||||
maxCallDuration = remainingDuration
|
||||
}
|
||||
}
|
||||
rs.getCache().Cache(cacheKey, &cache.CacheItem{Value: maxCallDuration})
|
||||
*reply = maxCallDuration
|
||||
rs.getCache().Cache(cacheKey, &cache.CacheItem{Value: reply})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user