Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions internal/utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,9 +986,10 @@ func CreateDatastore(ctx context.Context, env EnvironmentDetails) (datastore.Dat
Schema: datastore.DataStoreSchema{
LedgersPerFile: 1,
FilesPerPartition: 64000,
FileExtension: "zstd",
},
Compression: "zstd",
}

datastore, error := datastore.NewDataStore(ctx, dataStoreConfig)
return datastore, dataStoreConfig, error
}
Expand Down Expand Up @@ -1019,7 +1020,7 @@ func CreateLedgerBackend(ctx context.Context, useCaptiveCore bool, env Environme

var schema datastore.DataStoreSchema
schema, err = datastore.LoadSchema(context.Background(), dataStore, datastoreConfig)

schema.FileExtension = "zstd"
backend, err := ledgerbackend.NewBufferedStorageBackend(BSBackendConfig, dataStore, schema)
if err != nil {
return nil, err
Expand Down
Loading