diff --git a/pkg/eosclient/eosgrpc/eosgrpc.go b/pkg/eosclient/eosgrpc/eosgrpc.go index 4e673378dc8..5d801b0cb10 100644 --- a/pkg/eosclient/eosgrpc/eosgrpc.go +++ b/pkg/eosclient/eosgrpc/eosgrpc.go @@ -131,7 +131,7 @@ type Client struct { cl erpc.EosClient } -// GetHttpCl creates an http client for immediate usage, using the already instantiated resources +// GetHTTPCl creates an http client for immediate usage, using the already instantiated resources func (c *Client) GetHTTPCl() *ehttp.EosHttpClient { return ehttp.New(&c.opt.httpopts) } @@ -704,8 +704,9 @@ func (c *Client) GetQuota(ctx context.Context, username, rootUID, rootGID, path // If there are many for this node, we sum them up for i := 0; i < len(resp.Quota.Quotanode); i++ { log.Debug().Str("func", "GetQuota").Str("rootuid,rootgid", rootUID+","+rootGID).Str("quotanode:", fmt.Sprintf("%d: %#v", i, resp.Quota.Quotanode[i])).Msg("") + var mx uint64 - mx := resp.Quota.Quotanode[i].Maxlogicalbytes - resp.Quota.Quotanode[i].Usedbytes + mx = resp.Quota.Quotanode[i].Maxlogicalbytes - resp.Quota.Quotanode[i].Usedbytes if mx < 0 { mx = 0 }