mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdhttp: implment Peers.String()
This commit is contained in:
parent
f4a33dd6df
commit
378cadf073
@ -57,7 +57,13 @@ func (ps *Peers) Set(s string) error {
|
||||
}
|
||||
|
||||
func (ps *Peers) String() string {
|
||||
return "todo"
|
||||
v := url.Values{}
|
||||
for k, vv := range *ps {
|
||||
for i := range vv {
|
||||
v.Add(strconv.FormatInt(k, 16), vv[i])
|
||||
}
|
||||
}
|
||||
return v.Encode()
|
||||
}
|
||||
|
||||
func (ps Peers) Ids() []int64 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user