mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Id gen suga
This commit is contained in:
committed by
Denis Makogon
parent
16b15af9e7
commit
161459192d
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/go-openapi/strfmt"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
"gitlab-odx.oracle.com/odx/functions/api/id"
|
||||
"gitlab-odx.oracle.com/odx/functions/api/models"
|
||||
"gitlab-odx.oracle.com/odx/functions/api/runner/drivers"
|
||||
"gitlab-odx.oracle.com/odx/functions/api/runner/protocol"
|
||||
@@ -242,7 +242,7 @@ func newhtfn(cfg *task.Config, tasks <-chan task.Request, rnr *Runner, once func
|
||||
stdoutr, stdoutw := io.Pipe()
|
||||
|
||||
return &htfn{
|
||||
id: uuid.NewV5(uuid.Nil, fmt.Sprintf("%s%s%d", cfg.AppName, cfg.Path, time.Now().Unix())).String(),
|
||||
id: id.New().String(),
|
||||
cfg: cfg,
|
||||
proto: protocol.New(protocol.Protocol(cfg.Format), stdinw, stdoutr),
|
||||
tasks: tasks,
|
||||
|
||||
Reference in New Issue
Block a user