Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenquan Xing committed Dec 22, 2017
1 parent d80a4d0 commit cba2a41
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion common/persistence/cassandraPersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ func (d *cassandraPersistence) CreateWorkflowExecutionWithinBatch(request *Creat
request.ExecutionContext,
WorkflowStateCreated,
WorkflowCloseStatusNone,
request.LastFirstEventID,
common.FirstEventID,
request.NextEventID,
request.LastProcessedEvent,
cqlNowTimestamp,
Expand Down
1 change: 0 additions & 1 deletion common/persistence/cassandraPersistence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func (s *cassandraPersistenceSuite) TestPersistenceStartWorkflow() {
WorkflowTimeout: 20,
DecisionTimeoutValue: 13,
ExecutionContext: nil,
LastFirstEventID: common.FirstEventID,
NextEventID: int64(3),
LastProcessedEvent: 0,
RangeID: s.ShardInfo.RangeID - 1,
Expand Down
1 change: 0 additions & 1 deletion common/persistence/dataInterfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ type (
WorkflowTimeout int32
DecisionTimeoutValue int32
ExecutionContext []byte
LastFirstEventID int64
NextEventID int64
LastProcessedEvent int64
TransferTasks []Task
Expand Down
4 changes: 0 additions & 4 deletions common/persistence/persistenceTestBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ func (s *TestBase) CreateWorkflowExecution(domainID string, workflowExecution wo
WorkflowTimeout: wTimeout,
DecisionTimeoutValue: decisionTimeout,
ExecutionContext: executionContext,
LastFirstEventID: common.FirstEventID,
NextEventID: nextEventID,
LastProcessedEvent: lastProcessedEventID,
RangeID: s.ShardInfo.RangeID,
Expand Down Expand Up @@ -270,7 +269,6 @@ func (s *TestBase) CreateWorkflowExecutionManyTasks(domainID string, workflowExe
Execution: workflowExecution,
TaskList: taskList,
ExecutionContext: executionContext,
LastFirstEventID: common.FirstEventID,
NextEventID: nextEventID,
LastProcessedEvent: lastProcessedEventID,
TransferTasks: transferTasks,
Expand Down Expand Up @@ -304,7 +302,6 @@ func (s *TestBase) CreateChildWorkflowExecution(domainID string, workflowExecuti
WorkflowTimeout: wTimeout,
DecisionTimeoutValue: decisionTimeout,
ExecutionContext: executionContext,
LastFirstEventID: common.FirstEventID,
NextEventID: nextEventID,
LastProcessedEvent: lastProcessedEventID,
RangeID: s.ShardInfo.RangeID,
Expand Down Expand Up @@ -387,7 +384,6 @@ func (s *TestBase) ContinueAsNewExecution(updatedInfo *WorkflowExecutionInfo, co
WorkflowTimeout: updatedInfo.WorkflowTimeout,
DecisionTimeoutValue: updatedInfo.DecisionTimeoutValue,
ExecutionContext: nil,
LastFirstEventID: common.FirstEventID,
NextEventID: nextEventID,
LastProcessedEvent: common.EmptyEventID,
RangeID: s.ShardInfo.RangeID,
Expand Down

0 comments on commit cba2a41

Please sign in to comment.