Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Dec 3, 2024
1 parent bcffbd5 commit bfdc72f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ func NewAgent(logger *zap.SugaredLogger,
testWorkflowNotificationsRequestBuffer: make(chan *cloud.TestWorkflowNotificationsRequest, bufferSizePerWorker*proContext.WorkflowNotificationsWorkerCount),
testWorkflowNotificationsResponseBuffer: make(chan *cloud.TestWorkflowNotificationsResponse, bufferSizePerWorker*proContext.WorkflowNotificationsWorkerCount),
testWorkflowNotificationsFunc: workflowNotificationsFunc,
testWorkflowServiceNotificationsWorkerCount: proContext.WorkflowServiceNotificationsWorkerCount,
testWorkflowServiceNotificationsRequestBuffer: make(chan *cloud.TestWorkflowServiceNotificationsRequest, bufferSizePerWorker*proContext.WorkflowServiceNotificationsWorkerCount),
testWorkflowServiceNotificationsResponseBuffer: make(chan *cloud.TestWorkflowServiceNotificationsResponse, bufferSizePerWorker*proContext.WorkflowServiceNotificationsWorkerCount),
testWorkflowServiceNotificationsFunc: workflowServiceNotificationsFunc,

testWorkflowServiceNotificationsWorkerCount: proContext.WorkflowServiceNotificationsWorkerCount,
testWorkflowServiceNotificationsRequestBuffer: make(chan *cloud.TestWorkflowServiceNotificationsRequest, bufferSizePerWorker*proContext.WorkflowServiceNotificationsWorkerCount),
testWorkflowServiceNotificationsResponseBuffer: make(chan *cloud.TestWorkflowServiceNotificationsResponse, bufferSizePerWorker*proContext.WorkflowServiceNotificationsWorkerCount),
testWorkflowServiceNotificationsFunc: workflowServiceNotificationsFunc,
testWorkflowParallelStepNotificationsWorkerCount: proContext.WorkflowParallelStepNotificationsWorkerCount,
testWorkflowParallelStepNotificationsRequestBuffer: make(chan *cloud.TestWorkflowParallelStepNotificationsRequest, bufferSizePerWorker*proContext.WorkflowParallelStepNotificationsWorkerCount),
testWorkflowParallelStepNotificationsResponseBuffer: make(chan *cloud.TestWorkflowParallelStepNotificationsResponse, bufferSizePerWorker*proContext.WorkflowParallelStepNotificationsWorkerCount),
testWorkflowParallelStepNotificationsFunc: workflowParallelStepNotificationsFunc,
clusterID: clusterID,
clusterName: clusterName,
features: features,
Expand Down
6 changes: 6 additions & 0 deletions pkg/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ func (cs *CloudServer) GetTestWorkflowServiceNotificationsStream(srv cloud.TestK
return nil
}

func (cs *CloudServer) GetTestWorkflowParallelStepNotificationsStream(srv cloud.TestKubeCloudAPI_GetTestWorkflowParallelStepNotificationsStreamServer) error {
<-cs.ctx.Done()

return nil
}

func (cs *CloudServer) ExecuteAsync(srv cloud.TestKubeCloudAPI_ExecuteAsyncServer) error {
md, ok := metadata.FromIncomingContext(srv.Context())
if !ok {
Expand Down
6 changes: 6 additions & 0 deletions pkg/agent/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ func (cws *CloudEventServer) GetTestWorkflowServiceNotificationsStream(srv cloud
return nil
}

func (cws *CloudEventServer) GetTestWorkflowParallelStepNotificationsStream(srv cloud.TestKubeCloudAPI_GetTestWorkflowParallelStepNotificationsStreamServer) error {
<-cws.ctx.Done()

return nil
}

func (cws *CloudEventServer) Send(srv cloud.TestKubeCloudAPI_SendServer) error {
md, ok := metadata.FromIncomingContext(srv.Context())
if !ok {
Expand Down
5 changes: 5 additions & 0 deletions pkg/agent/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func (cs *CloudLogsServer) GetTestWorkflowServiceNotificationsStream(srv cloud.T
return nil
}

func (cs *CloudLogsServer) GetTestWorkflowParallelStepNotificationsStream(srv cloud.TestKubeCloudAPI_GetTestWorkflowParallelStepNotificationsStreamServer) error {
<-cs.ctx.Done()
return nil
}

func (cs *CloudLogsServer) GetLogsStream(srv cloud.TestKubeCloudAPI_GetLogsStreamServer) error {
md, ok := metadata.FromIncomingContext(srv.Context())
if !ok {
Expand Down

0 comments on commit bfdc72f

Please sign in to comment.