mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-13 12:33:35 +02:00
multi: fix NewPriceSource typo
This commit fixes a typo in the NewPriceSource function name.
This commit is contained in:
parent
0bb706b113
commit
7203f3e405
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue