make private if not part of provider interface
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-13 18:52:24 -07:00
parent 5eea9ede3a
commit 47e460a9dc
4 changed files with 19 additions and 19 deletions

View File

@ -25,7 +25,7 @@ type Address struct {
// GetAddress returns an Address struct populated with data from blockstream.info
// for a given BTC address
func (c *client) GetAddress(address string) (*Address, error) {
func (c *client) getAddress(address string) (*Address, error) {
addressResponse := &Address{}
err := c.get(fmt.Sprintf("address/%s", address), addressResponse, url.Values{})

View File

@ -51,7 +51,7 @@ func (p *Provider) GetBalances() ([]int, []string, error) {
ynabAccountIDs := make([]string, 0)
var satoshiBalance int
for _, bitcoinAddress := range p.bitcoinAddresses {
addressResponse, err := p.client.GetAddress(bitcoinAddress)
addressResponse, err := p.client.getAddress(bitcoinAddress)
if err != nil {
return balances, ynabAccountIDs, fmt.Errorf("failed to get bitcoin address '%s': %v", bitcoinAddress, err)
}