2021-02-01 16:17:16 +00:00
|
|
|
package basic
|
|
|
|
|
2021-02-02 13:45:13 +00:00
|
|
|
import (
|
|
|
|
"go.uber.org/zap"
|
|
|
|
)
|
|
|
|
|
2021-02-01 16:17:16 +00:00
|
|
|
func (inc *IncomeSettlementContext) Distribute() {
|
|
|
|
inc.mu.Lock()
|
|
|
|
defer inc.mu.Unlock()
|
2021-02-02 13:45:13 +00:00
|
|
|
|
|
|
|
bankBalance, err := inc.balances.Balance(inc.bankOwner)
|
|
|
|
if err != nil {
|
|
|
|
inc.log.Error("can't fetch balance of banking account",
|
|
|
|
zap.String("error", err.Error()))
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
_ = bankBalance
|
2021-02-01 16:17:16 +00:00
|
|
|
}
|