From 0ac2be39712d9a7253586488a4e60183bdf0ae39 Mon Sep 17 00:00:00 2001 From: kaifei Date: Thu, 2 Jul 2020 17:25:49 +0800 Subject: [PATCH] comment off Circulation info --- backend/rest/controller/home.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/backend/rest/controller/home.go b/backend/rest/controller/home.go index e74a45dba..cf5c92f1d 100644 --- a/backend/rest/controller/home.go +++ b/backend/rest/controller/home.go @@ -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() {