Skip to content

Commit db0c602

Browse files
authored
Merge pull request #121 from ellemouton/fixTypoAndProtos
multi: fix typo and regenerate protos
2 parents f7a85d4 + 7203f3e commit db0c602

File tree

4 files changed

+1761
-976
lines changed

4 files changed

+1761
-976
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)