Skip to content

Commit d75e5bc

Browse files
Obelisk-The-Tormentorfalzhang
andauthored
chore(): sdk修复, GetAllAddresses()获取ENS时,不排序,确保其节点随机性 (#29)
Co-authored-by: falzhang <[email protected]>
1 parent 9bd8933 commit d75e5bc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

plugins/restv2/client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ import (
66
"io"
77
"io/ioutil"
88
"net/http"
9-
"sort"
109
"strconv"
1110
"syscall"
1211
"time"
13-
14-
"github.com/easyops-cn/giraffe-micro"
1512
)
1613

1714
// Middleware 中间件定义
@@ -177,8 +174,6 @@ func (c *Client) getAllAddressesWithENS(ctx context.Context, contract giraffe.Co
177174
if err != nil {
178175
return
179176
}
180-
// 排序
181-
sort.Strings(addresses)
182177
return
183178
}
184179

0 commit comments

Comments
 (0)