Update router for cache expiry
This commit is contained in:
+3
-2
@@ -41,13 +41,14 @@ package router
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
controllerClient "github.com/platform9/fission/controller/client"
|
||||
poolmgrClient "github.com/platform9/fission/poolmgr/client"
|
||||
"log"
|
||||
)
|
||||
|
||||
// request url ---[mux]---> Function(name,uid) ----[fmap]----> k8s service url
|
||||
@@ -68,7 +69,7 @@ func serve(port int, httpTriggerSet *HTTPTriggerSet) {
|
||||
}
|
||||
|
||||
func Start(port int, controllerUrl string, poolmgrUrl string) {
|
||||
fmap := makeFunctionServiceMap()
|
||||
fmap := makeFunctionServiceMap(time.Minute)
|
||||
controller := controllerClient.MakeClient(controllerUrl)
|
||||
poolmgr := poolmgrClient.MakeClient(poolmgrUrl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user