Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed May 10, 2024
1 parent f9c113a commit 8f697e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions sc/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,8 @@ func NewCommitStore(homeDir string, logger logger.Logger, config config.StateCom
return commitStore
}

func (cs *CommitStore) Initialize(initialStores []string) error {
options := cs.opts
options.InitialStores = initialStores
db, err := memiavl.OpenDB(cs.logger, 0, options)
if err != nil {
return err
}
cs.db = db
return nil
func (cs *CommitStore) Initialize(initialStores []string) {
cs.opts.InitialStores = initialStores
}

func (cs *CommitStore) SetInitialVersion(initialVersion int64) error {
Expand Down
2 changes: 1 addition & 1 deletion sc/types/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

type Committer interface {
Initialize(initialStores []string) error
Initialize(initialStores []string)

Commit() (int64, error)

Expand Down

0 comments on commit 8f697e4

Please sign in to comment.