Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blobber): rename Used with Allocated #255

Merged
merged 13 commits into from
Jun 21, 2022
4 changes: 2 additions & 2 deletions cmd/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func printBlobbers(nodes []*sdk.Blobber) {
for _, val := range nodes {
fmt.Println("- id: ", val.ID)
fmt.Println(" url: ", val.BaseURL)
fmt.Println(" used / total capacity:", val.Used.String(), "/",
fmt.Println(" allocated / total capacity:", val.Allocated.String(), "/",
val.Capacity.String())
fmt.Println(" last_health_check: ", val.LastHealthCheck.ToTime())
fmt.Println(" terms:")
Expand Down Expand Up @@ -169,7 +169,7 @@ var blobberInfoCmd = &cobra.Command{
fmt.Println("url: ", blob.BaseURL)
fmt.Println("capacity: ", blob.Capacity)
fmt.Println("last_health_check:", blob.LastHealthCheck.ToTime())
fmt.Println("capacity_used: ", blob.Used)
fmt.Println("capacity_used: ", blob.Allocated)
fmt.Println("terms:")
fmt.Println(" read_price: ", blob.Terms.ReadPrice, "/ GB")
fmt.Println(" write_price: ", blob.Terms.WritePrice, "/ GB")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/0chain/errors v1.0.3
github.com/0chain/gosdk v1.8.5-0.20220617011315-34aff7a510b6
github.com/0chain/gosdk v1.8.5-0.20220620000245-6735bde55d68
github.com/icza/bitio v1.1.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
github.com/0chain/gosdk v1.8.5-0.20220617011315-34aff7a510b6 h1:XvOwqijLsUg2vLkxygesGyu3DLNceMQB9eEN2BtbvS0=
github.com/0chain/gosdk v1.8.5-0.20220617011315-34aff7a510b6/go.mod h1:2paTmVrhhLCuhpXUbol9wLYbXl6RxcisrixIf45nFSA=
github.com/0chain/gosdk v1.8.5-0.20220620000245-6735bde55d68 h1:PtoCiCNUunmrgVh6TdMMA2cj4fV6b2EmPJkcOK/CQVM=
github.com/0chain/gosdk v1.8.5-0.20220620000245-6735bde55d68/go.mod h1:2paTmVrhhLCuhpXUbol9wLYbXl6RxcisrixIf45nFSA=
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I=
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo=
Expand Down