We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf392ef commit 811a038Copy full SHA for 811a038
hermes/latest_price_sse.go
@@ -3,6 +3,7 @@ package hermes
3
import (
4
"context"
5
"encoding/json"
6
+ "errors"
7
"fmt"
8
"math/rand"
9
"time"
@@ -43,7 +44,7 @@ func (c *Client) GetCachedLatestPriceUpdates(
43
44
) (map[string]*types.LatestPriceData, error) {
45
// Validate parameters
46
if len(priceFeeds) == 0 {
- return nil, fmt.Errorf("zero length of price feeds is an invalid input")
47
+ return nil, errors.New("zero length of price feeds is an invalid input")
48
}
49
50
// Wait for the ready signal
0 commit comments