Depend on iron-io/runner instead of iron-io/worker (#124)

This commit is contained in:
Seif Lotfy سيف لطفي
2016-10-05 20:42:12 +02:00
committed by GitHub
parent eed5422c59
commit fbcec6bf40
24 changed files with 142 additions and 146 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/iron-io/functions/api/models"
"github.com/iron-io/functions/api/runner"
titancommon "github.com/iron-io/worker/common"
"github.com/iron-io/runner/common"
)
type appResponse struct {
@@ -45,7 +45,7 @@ func testRouter() *gin.Engine {
r := gin.Default()
ctx := context.Background()
r.Use(func(c *gin.Context) {
ctx, _ := titancommon.LoggerWithFields(ctx, extractFields(c))
ctx, _ := common.LoggerWithFields(ctx, extractFields(c))
c.Set("ctx", ctx)
c.Next()
})