mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: fix gosimple warning for fmt.Sprintf("%s")
This commit is contained in:
parent
53ca03b655
commit
ae7b4ee8ed
@ -178,7 +178,7 @@ func (c *RaftCluster) String() string {
|
||||
fmt.Fprintf(b, "Members:[%s] ", strings.Join(ms, " "))
|
||||
var ids []string
|
||||
for id := range c.removed {
|
||||
ids = append(ids, fmt.Sprintf("%s", id))
|
||||
ids = append(ids, id.String())
|
||||
}
|
||||
fmt.Fprintf(b, "RemovedMemberIDs:[%s]}", strings.Join(ids, " "))
|
||||
return b.String()
|
||||
|
@ -128,9 +128,9 @@ func (ts TimeSeries) String() string {
|
||||
for i := range ts {
|
||||
row := []string{
|
||||
fmt.Sprintf("%d", ts[i].Timestamp),
|
||||
fmt.Sprintf("%s", ts[i].MinLatency),
|
||||
fmt.Sprintf("%s", ts[i].AvgLatency),
|
||||
fmt.Sprintf("%s", ts[i].MaxLatency),
|
||||
ts[i].MinLatency.String(),
|
||||
ts[i].AvgLatency.String(),
|
||||
ts[i].MaxLatency.String(),
|
||||
fmt.Sprintf("%d", ts[i].ThroughPut),
|
||||
}
|
||||
rows = append(rows, row)
|
||||
|
Loading…
x
Reference in New Issue
Block a user