mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Depend on iron-io/runner instead of iron-io/worker (#124)
This commit is contained in:
committed by
GitHub
parent
eed5422c59
commit
fbcec6bf40
@@ -13,8 +13,7 @@ import (
|
||||
"github.com/iron-io/functions/api/ifaces"
|
||||
"github.com/iron-io/functions/api/models"
|
||||
"github.com/iron-io/functions/api/runner"
|
||||
"github.com/iron-io/worker/common"
|
||||
titancommon "github.com/iron-io/worker/common"
|
||||
"github.com/iron-io/runner/common"
|
||||
)
|
||||
|
||||
// Would be nice to not have this is a global, but hard to pass things around to the
|
||||
@@ -139,7 +138,7 @@ func extractFields(c *gin.Context) logrus.Fields {
|
||||
|
||||
func (s *Server) Run(ctx context.Context) {
|
||||
s.Router.Use(func(c *gin.Context) {
|
||||
ctx, _ := titancommon.LoggerWithFields(ctx, extractFields(c))
|
||||
ctx, _ := common.LoggerWithFields(ctx, extractFields(c))
|
||||
c.Set("ctx", ctx)
|
||||
c.Next()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user