mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:16:01 +00:00
fix code
This commit is contained in:
parent
d4a998689b
commit
385c03d505
@ -49,7 +49,7 @@ func request(params map[string]interface{}) error {
|
||||
|
||||
idx := 0
|
||||
for i := 0; i < maxRetryTimes; i++ {
|
||||
err = apiRequest(params, indexes[idx])
|
||||
err = apiRequest(params, endpoints[idx])
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user