added client generator inteface (#2854)
* added client generator inteface * start router service asynchronously Signed-off-by: Vardhaman Surana <vardhaman.surana@infracloud.io>
This commit is contained in:
@@ -249,8 +249,8 @@ func (executor *Executor) getFunctionServiceFromCache(ctx context.Context, fn *f
|
||||
|
||||
// StartExecutor Starts executor and the executor components such as Poolmgr,
|
||||
// deploymgr and potential future executor types
|
||||
func StartExecutor(ctx context.Context, logger *zap.Logger, port int) error {
|
||||
clientGen := crd.NewClientGenerator()
|
||||
func StartExecutor(ctx context.Context, clientGen crd.ClientGeneratorInterface, logger *zap.Logger, port int) error {
|
||||
|
||||
fissionClient, err := clientGen.GetFissionClient()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error making the fission client")
|
||||
|
||||
Reference in New Issue
Block a user