Skip to content

Commit

Permalink
Merge branch 'master' into drop-p2p-options
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee authored Jul 9, 2024
2 parents ffa14d0 + affe0de commit e883a46
Show file tree
Hide file tree
Showing 7 changed files with 959 additions and 42 deletions.
10 changes: 6 additions & 4 deletions das/das_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ func testDASStoreRetrieveMultipleInstances(t *testing.T, storageType string) {
KeyDir: dbPath,
},
LocalFileStorage: LocalFileStorageConfig{
Enable: enableFileStorage,
DataDir: dbPath,
Enable: enableFileStorage,
DataDir: dbPath,
MaxRetention: DefaultLocalFileStorageConfig.MaxRetention,
},
LocalDBStorage: dbConfig,
ParentChainNodeURL: "none",
Expand Down Expand Up @@ -129,8 +130,9 @@ func testDASMissingMessage(t *testing.T, storageType string) {
KeyDir: dbPath,
},
LocalFileStorage: LocalFileStorageConfig{
Enable: enableFileStorage,
DataDir: dbPath,
Enable: enableFileStorage,
DataDir: dbPath,
MaxRetention: DefaultLocalFileStorageConfig.MaxRetention,
},
LocalDBStorage: dbConfig,
ParentChainNodeURL: "none",
Expand Down
6 changes: 5 additions & 1 deletion das/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ func CreatePersistentStorageService(
}

if config.LocalFileStorage.Enable {
s, err := NewLocalFileStorageService(config.LocalFileStorage.DataDir)
s, err := NewLocalFileStorageService(config.LocalFileStorage)
if err != nil {
return nil, nil, err
}
err = s.start(ctx)
if err != nil {
return nil, nil, err
}
Expand Down
Loading

0 comments on commit e883a46

Please sign in to comment.