Commit 54cc0cb8 authored by Jakub Sztandera's avatar Jakub Sztandera Committed by GitHub

Merge pull request #37 from rikonor/master

Print formatted string using Errorf
parents c2fc3e61 e3d805a7
...@@ -118,7 +118,7 @@ func (fs *Datastore) Put(key datastore.Key, value interface{}) error { ...@@ -118,7 +118,7 @@ func (fs *Datastore) Put(key datastore.Key, value interface{}) error {
return err return err
} }
log.Error("too many open files, retrying in %dms", 100*i) log.Errorf("too many open files, retrying in %dms", 100*i)
time.Sleep(time.Millisecond * 100 * time.Duration(i)) time.Sleep(time.Millisecond * 100 * time.Duration(i))
} }
return err return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment