Fixed golangci-lint issues: /fission/pkg/executor (#1842)

This commit is contained in:
Gaurav Gahlot
2020-12-03 22:29:35 +05:30
committed by GitHub
parent bb9f4136f5
commit e438df87fa
15 changed files with 220 additions and 91 deletions
+3
View File
@@ -44,6 +44,7 @@ import (
)
type (
// Executor defines a fission function executor.
Executor struct {
logger *zap.Logger
@@ -55,6 +56,7 @@ type (
requestChan chan *createFuncServiceRequest
fsCreateWg map[string]*sync.WaitGroup
}
createFuncServiceRequest struct {
function *fv1.Function
respChan chan *createFuncServiceResponse
@@ -66,6 +68,7 @@ type (
}
)
// MakeExecutor returns an Executor for given ExecutorType(s).
func MakeExecutor(logger *zap.Logger, cms *cms.ConfigSecretController,
fissionClient *crd.FissionClient, types map[fv1.ExecutorType]executortype.ExecutorType) (*Executor, error) {
executor := &Executor{