Skip to content

Commit

Permalink
Merge pull request #121 from ellemouton/fixTypoAndProtos
Browse files Browse the repository at this point in the history
multi: fix typo and regenerate protos
  • Loading branch information
carlaKC authored May 24, 2021
2 parents f7a85d4 + 7203f3e commit db0c602
Show file tree
Hide file tree
Showing 4 changed files with 1,761 additions and 976 deletions.
2 changes: 1 addition & 1 deletion accounting/conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func getConversion(ctx context.Context, startTime, endTime time.Time,
return nil, err
}

fiatClient, err := fiat.NewPricePriceSource(fiatBackend, granularity)
fiatClient, err := fiat.NewPriceSource(fiatBackend, granularity)
if err != nil {
return nil, err
}
Expand Down
6 changes: 3 additions & 3 deletions fiat/prices.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func (p PriceBackend) String() string {
return priceBackendNames[p]
}

// NewPricePriceSource returns a PriceSource which can be used to query price
// NewPriceSource returns a PriceSource which can be used to query price
// data.
func NewPricePriceSource(backend PriceBackend, granularity *Granularity) (
func NewPriceSource(backend PriceBackend, granularity *Granularity) (
*PriceSource, error) {

switch backend {
Expand Down Expand Up @@ -152,7 +152,7 @@ func GetPrices(ctx context.Context, timestamps []time.Time,
// timestamp if we have 1 entry, but that's ok.
start, end := timestamps[0], timestamps[len(timestamps)-1]

client, err := NewPricePriceSource(backend, &granularity)
client, err := NewPriceSource(backend, &granularity)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit db0c602

Please sign in to comment.