all tests passing

This commit is contained in:
Radu Ioan Fericean
2012-08-17 16:51:32 +03:00
parent c30fab7036
commit 7a41ea965a
2 changed files with 1 additions and 4 deletions

View File

@@ -22,7 +22,6 @@ import (
"errors"
"fmt"
"github.com/rif/cache2go"
"log"
"log/syslog"
"math"
"time"
@@ -92,7 +91,7 @@ func (cd *CallDescriptor) GetUserBalanceKey() string {
if cd.Account != "" {
subj = cd.Account
}
return ACCOUNT_PREFIX + fmt.Sprintf("%s:%s:%s", cd.Direction, cd.Tenant, subj)
return fmt.Sprintf("%s:%s:%s", cd.Direction, cd.Tenant, subj)
}
/*
@@ -151,7 +150,6 @@ func (cd *CallDescriptor) LoadActivationPeriods() (destPrefix string, err error)
}
func (cd *CallDescriptor) getActivationPeriodsForPrefix(key string, recursionDepth int) (foundPrefix string, aps []*ActivationPeriod, err error) {
log.Print("Search: ", key)
if recursionDepth > RECURSION_MAX_DEPTH {
err = errors.New("Max fallback recursion depth reached!" + key)
return

View File

@@ -26,7 +26,6 @@ import (
)
const (
ACCOUNT_PREFIX = "account:"
ACTION_TIMING_PREFIX = "acttmg:"
CALL_COST_LOG_PREFIX = "cc:"
LOG_PREFIX = "log:"