Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/connection_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (connectionManager *ConnectionManager) switchToNodeLocked(mode, index int,
return &nodes[index], nil
}

// SwitchToNextNode switches to the next node in the list.
// SwitchToNextQueryNode switches to the next node in the list.
// Node change is persistent, so it will be used again in the next call
// Returns current node if error
func (connectionManager *ConnectionManager) SwitchToNextQueryNode() (*NodeConfig, error) {
Expand Down
2 changes: 1 addition & 1 deletion lib/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var HTTPStatusCodeCodesSwitchingNode = map[int]bool{

const GAS_EXCESS_CORRECTION uint64 = 20000

// calculateExponentialBackoffDelay returns a duration based on retry count and base delay
// calculateExponentialBackoffDelaySeconds returns a duration based on retry count and base delay
func calculateExponentialBackoffDelaySeconds(baseDelay int64, retryCount int64) int64 {
return int64(math.Pow(float64(baseDelay), float64(retryCount)))
}
Expand Down