mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
functions: hot containers (#332)
* functions: modify datastore to accomodate hot containers support * functions: protocol between functions and hot containers * functions: add hot containers clockwork * fn: add hot containers support
This commit is contained in:
3
main.go
3
main.go
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/iron-io/functions/api/datastore"
|
||||
"github.com/iron-io/functions/api/mqs"
|
||||
"github.com/iron-io/functions/api/runner"
|
||||
"github.com/iron-io/functions/api/runner/task"
|
||||
"github.com/iron-io/functions/api/server"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
@@ -84,7 +85,7 @@ func main() {
|
||||
},
|
||||
}
|
||||
|
||||
tasks := make(chan runner.TaskRequest)
|
||||
tasks := make(chan task.Request)
|
||||
|
||||
svr.AddFunc(func(ctx context.Context) {
|
||||
runner.StartWorkers(ctx, rnr, tasks)
|
||||
|
||||
Reference in New Issue
Block a user