From 7203f3e405c67fd454a2a9596d1f52260b2ea910 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Thu, 20 May 2021 14:40:37 +0200 Subject: [PATCH] multi: fix NewPriceSource typo This commit fixes a typo in the NewPriceSource function name. --- accounting/conversions.go | 2 +- fiat/prices.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounting/conversions.go b/accounting/conversions.go index d72c5c2..5c18897 100644 --- a/accounting/conversions.go +++ b/accounting/conversions.go @@ -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 } diff --git a/fiat/prices.go b/fiat/prices.go index 1a35019..b92e83c 100644 --- a/fiat/prices.go +++ b/fiat/prices.go @@ -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 { @@ -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 }