mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Missing a return statement
This commit is contained in:
@@ -98,6 +98,7 @@ func ProxyFunc(w http.ResponseWriter, req *http.Request) {
|
|||||||
if len(route.Destinations) > 1 {
|
if len(route.Destinations) > 1 {
|
||||||
fmt.Println("It's a network error, removing this destination from routing table.")
|
fmt.Println("It's a network error, removing this destination from routing table.")
|
||||||
route.Destinations = append(route.Destinations[:destIndex], route.Destinations[destIndex+1:]...)
|
route.Destinations = append(route.Destinations[:destIndex], route.Destinations[destIndex+1:]...)
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("It's a network error and no other destinations available so we're going to start new task.")
|
fmt.Println("It's a network error and no other destinations available so we're going to start new task.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user