mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
added some comments
This commit is contained in:
@@ -31,6 +31,8 @@ type UnitsCounter struct {
|
||||
Balances BalanceChain // first balance is the general one (no destination)
|
||||
}
|
||||
|
||||
// clears balances for this counter
|
||||
// makes sure there are balances for all action triggers
|
||||
func (uc *UnitsCounter) initBalances(ats []*ActionTrigger) {
|
||||
uc.Balances = BalanceChain{&Balance{}} // general balance
|
||||
for _, at := range ats {
|
||||
|
||||
@@ -374,7 +374,7 @@ func (ub *UserBalance) countUnits(a *Action) {
|
||||
ub.executeActionTriggers(nil)
|
||||
}
|
||||
|
||||
// Create minute counters for all triggered actions that have actions operating on minute buckets
|
||||
// Create minute counters for all triggered actions that have actions opertating on balances
|
||||
func (ub *UserBalance) initCounters() {
|
||||
ucTempMap := make(map[string]*UnitsCounter, 2)
|
||||
for _, at := range ub.ActionTriggers {
|
||||
|
||||
Reference in New Issue
Block a user