Skip to content

Commit

Permalink
👌 IMPROVE: resolve conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <[email protected]>
  • Loading branch information
gauravgahlot committed Apr 29, 2022
1 parent ed22544 commit 1e94ce1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions server/dbserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
errInvalidActionName = "invalid action name"
errInvalidTaskReported = "reported task name does not match the current action details"
errInvalidActionReported = "reported action name does not match the current action details"
errInvalidActionIndex = "invalid action index for workflow"

msgReceivedStatus = "received action status: %s"
msgCurrentWfContext = "current workflow context"
Expand Down
16 changes: 0 additions & 16 deletions server/dbserver_worker_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@ import (
"google.golang.org/grpc/status"
)

var workflowData = make(map[string]int)

const (
errInvalidWorkerID = "invalid worker id"
errInvalidWorkflowID = "invalid workflow id"
errInvalidTaskName = "invalid task name"
errInvalidActionName = "invalid action name"
errInvalidTaskReported = "reported task name does not match the current action details"
errInvalidActionReported = "reported action name does not match the current action details"
errInvalidActionIndex = "invalid action index for workflow"

msgReceivedStatus = "received action status: %s"
msgCurrentWfContext = "current workflow context"
msgSendWfContext = "send workflow context: %s"
)

// GetWorkflowContexts implements tinkerbell.GetWorkflowContexts.
func (s *DBServer) GetWorkflowContexts(req *workflow.WorkflowContextRequest, stream workflow.WorkflowService_GetWorkflowContextsServer) error {
wfs, err := getWorkflowsForWorker(stream.Context(), s.db, req.WorkerId)
Expand Down

0 comments on commit 1e94ce1

Please sign in to comment.