In DataManager Split the dataID and compose ID [1:]

This commit is contained in:
TeoV
2019-03-15 14:37:44 +02:00
committed by Dan Christian Bogos
parent 201b804bfb
commit 781b24a482
2 changed files with 1 additions and 7 deletions

View File

@@ -84,8 +84,6 @@ var sTestsStatSV1 = []func(t *testing.T){
testV1STSUpdateStatQueueProfile,
testV1STSRemoveStatQueueProfile,
testV1STSStatsPing,
// Need to make a decision about
// converter in filters
testV1STSProcessMetricsWithFilter,
testV1STSStopEngine,
}

View File

@@ -366,10 +366,6 @@ func SplitStats(key string) []string {
return strings.Split(key, STATS_CHAR)
}
func LCRKey(direction, tenant, category, account, subject string) string {
return ConcatenatedKey(direction, tenant, category, account, subject)
}
func InfieldJoin(vals ...string) string {
return strings.Join(vals, INFIELD_SEP)
}
@@ -782,7 +778,7 @@ func NewTenantID(tntID string) *TenantID {
if len(tIDSplt) == 1 { // only Tenant present
return &TenantID{Tenant: tIDSplt[0]}
}
return &TenantID{Tenant: tIDSplt[0], ID: tIDSplt[1]}
return &TenantID{Tenant: tIDSplt[0], ID: ConcatenatedKey(tIDSplt[1:]...)}
}
type TenantArg struct {