Skip to content

Commit

Permalink
keep comply with code style
Browse files Browse the repository at this point in the history
  • Loading branch information
樊尚享 committed Jan 19, 2018
1 parent 034df3c commit b99dff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/metad/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *Client) selectConnection() error {
time.Sleep(i)
}
if i >= maxTime {
return fmt.Errorf("Fail to connect any backend.")
return fmt.Errorf("fail to connect any backend.")
}
log.Info("Using Metad URL: " + c.current.url)
return nil
Expand All @@ -116,7 +116,7 @@ func (c *Client) testConnection() (*Connection, error) {
startConn := conn
_, err := conn.makeMetaDataRequest("/")
for err != nil {
log.Error("Connection to [%s], error: [%s]", conn.url, err.Error())
log.Error("connection to [%s], error: [%v]", conn.url, err)
c.connections = c.connections.Next()
conn = c.connections.Value.(*Connection)
if conn == startConn {
Expand Down

0 comments on commit b99dff9

Please sign in to comment.