Another bug due to initialization/assignment confusion
This commit is contained in:
@@ -51,7 +51,9 @@ func (fh *functionHandler) handler(responseWriter http.ResponseWriter, request *
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// Cache miss: request the Pool Manager to make a new service.
|
// Cache miss: request the Pool Manager to make a new service.
|
||||||
log.Printf("Not cached, getting new service for %v", fh.Function)
|
log.Printf("Not cached, getting new service for %v", fh.Function)
|
||||||
serviceUrl, poolErr := fh.getServiceForFunction()
|
|
||||||
|
var poolErr error
|
||||||
|
serviceUrl, poolErr = fh.getServiceForFunction()
|
||||||
if poolErr != nil {
|
if poolErr != nil {
|
||||||
log.Printf("Failed to get service for function (%v,%v): %v",
|
log.Printf("Failed to get service for function (%v,%v): %v",
|
||||||
fh.Function.Name, fh.Function.Uid, poolErr)
|
fh.Function.Name, fh.Function.Uid, poolErr)
|
||||||
|
|||||||
Reference in New Issue
Block a user