From 056136ef5acf6e850d809a1a255c752f3bc3755e Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Mon, 12 Jul 2021 11:36:22 +0200 Subject: [PATCH] rename argument from url to apiInfo --- node/modules/storageminer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index 6beeddcdf..8a895149b 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -726,11 +726,11 @@ func StorageAuth(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.Storage return sectorstorage.StorageAuth(headers), nil } -func StorageAuthWithURL(url string) func(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.StorageAuth, error) { +func StorageAuthWithURL(apiInfo string) func(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.StorageAuth, error) { return func(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.StorageAuth, error) { - s := strings.Split(url, ":") + s := strings.Split(apiInfo, ":") if len(s) != 2 { - return nil, errors.New("unexpected format of URL") + return nil, errors.New("unexpected format of `apiInfo`") } headers := http.Header{} headers.Add("Authorization", "Bearer "+s[0])