Skip to content

Commit 154a3d9

Browse files
committed
multi: fix NewPriceSource typo
This commit fixes a typo in the NewPriceSource function name.
1 parent 48ea079 commit 154a3d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

accounting/conversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func getConversion(ctx context.Context, startTime, endTime time.Time,
4949
return nil, err
5050
}
5151

52-
fiatClient, err := fiat.NewPricePriceSource(fiatBackend, granularity)
52+
fiatClient, err := fiat.NewPriceSource(fiatBackend, granularity)
5353
if err != nil {
5454
return nil, err
5555
}

fiat/prices.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ func (p PriceBackend) String() string {
9696
return priceBackendNames[p]
9797
}
9898

99-
// NewPricePriceSource returns a PriceSource which can be used to query price
99+
// NewPriceSource returns a PriceSource which can be used to query price
100100
// data.
101-
func NewPricePriceSource(backend PriceBackend, granularity *Granularity) (
101+
func NewPriceSource(backend PriceBackend, granularity *Granularity) (
102102
*PriceSource, error) {
103103

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

155-
client, err := NewPricePriceSource(backend, &granularity)
155+
client, err := NewPriceSource(backend, &granularity)
156156
if err != nil {
157157
return nil, err
158158
}

0 commit comments

Comments
 (0)