Skip to content

Commit

Permalink
Refactoring Cassandra workflow persistence manager for NoSQL support-…
Browse files Browse the repository at this point in the history
…Part 3
  • Loading branch information
longquanzheng authored Jul 9, 2021
1 parent c185ad8 commit 572582c
Show file tree
Hide file tree
Showing 11 changed files with 2,575 additions and 2,749 deletions.
2,306 changes: 0 additions & 2,306 deletions common/persistence/cassandra/cassandraPersistence.go

This file was deleted.

4 changes: 1 addition & 3 deletions common/persistence/nosql/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
"github.com/uber/cadence/common/log"
p "github.com/uber/cadence/common/persistence"

// NOTE: this package will be refactored and removed soon
cassandraOld "github.com/uber/cadence/common/persistence/cassandra"
"github.com/uber/cadence/common/persistence/nosql/nosqlplugin/cassandra"
"github.com/uber/cadence/common/persistence/nosql/nosqlplugin/cassandra/gocql"
)
Expand Down Expand Up @@ -152,7 +150,7 @@ func (f *executionStoreFactory) close() {

// new implements ExecutionStoreFactory interface
func (f *executionStoreFactory) new(shardID int) (p.ExecutionStore, error) {
pmgr, err := cassandraOld.NewWorkflowExecutionPersistence(shardID, f.client, f.session, f.logger)
pmgr, err := NewExecutionStore(shardID, f.client, f.session, f.logger)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 572582c

Please sign in to comment.