Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1463 from irisnet/hotfix/v0.11.1-0616
Browse files Browse the repository at this point in the history
Hotfix/v0.11.1 0616
  • Loading branch information
weichang-x authored Jul 2, 2020
2 parents 4235aa6 + 0e76113 commit 42814c9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions backend/rest/controller/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,22 @@ func registerNavigationBar(r *mux.Router) error {
funGroup = append(funGroup, queryBondedInfo)
group.Add(1)

var getTokenStatCirculation = func() {
defer func() {
group.Done()
if r := recover(); r != nil {
logger.Error("getTokenStatCirculation error", logger.Any("err", r))
}
}()
if v, err := lcd.GetTokenStatsCirculation(); err != nil {
logger.Error("GetTokenStatsCirculation fail", logger.String("err", err.Error()))
result.Circulation = "0"
} else {
result.Circulation = v.Amount
}
}
funGroup = append(funGroup, getTokenStatCirculation)
group.Add(1)
//var getTokenStatCirculation = func() {
// defer func() {
// group.Done()
// if r := recover(); r != nil {
// logger.Error("getTokenStatCirculation error", logger.Any("err", r))
// }
// }()
// if v, err := lcd.GetTokenStatsCirculation(); err != nil {
// logger.Error("GetTokenStatsCirculation fail", logger.String("err", err.Error()))
// result.Circulation = "0"
// } else {
// result.Circulation = v.Amount
// }
//}
//funGroup = append(funGroup, getTokenStatCirculation)
//group.Add(1)

//var getTokenStatFoundationBonded = func() {
//defer func() {
Expand Down

0 comments on commit 42814c9

Please sign in to comment.