Rename IsEtcdConflict to IsEtcdTestFailed

This commit is contained in:
Kouhei Ueno
2014-08-05 08:07:20 +09:00
parent 49e7f25020
commit 6288336436
3 changed files with 8 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ func MakeAsync(fn WorkFunc) <-chan interface{} {
if err != nil {
status := http.StatusInternalServerError
switch {
case tools.IsEtcdConflict(err):
case tools.IsEtcdTestFailed(err):
status = http.StatusConflict
}
channel <- &api.Status{