replaced storageGetter with dataStorage

This commit is contained in:
Radu Ioan Fericean
2013-12-17 22:37:51 +02:00
parent e03bbc9b96
commit 4638bad4d1
8 changed files with 31 additions and 31 deletions

View File

@@ -106,7 +106,7 @@ func (ris RatingInfos) Sort() {
func (rp *RatingProfile) GetRatingPlansForPrefix(cd *CallDescriptor) (err error) {
var ris RatingInfos
for index, rpa := range rp.RatingPlanActivations.GetActiveForCall(cd) {
rpl, err := storageGetter.GetRatingPlan(rpa.RatingPlanId, false)
rpl, err := dataStorage.GetRatingPlan(rpa.RatingPlanId, false)
if err != nil || rpl == nil {
Logger.Err(fmt.Sprintf("Error checking destination: %v", err))
continue