Skip to content

Commit

Permalink
fix golangci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Oct 27, 2022
1 parent e86c13e commit a85aca1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions storage/factory/pruningStorerFactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ func (psf *StorageServiceFactory) CreateForShard() (dataRetriever.StorageService

// shardHdrHashNonce storer is static
shardHdrHashNonceConfig := GetDBFromConfig(psf.generalConfig.ShardHdrNonceHashStorage.DB)
shardID = core.GetShardIDString(psf.shardCoordinator.SelfId())
dbPath := psf.pathManager.PathForStatic(shardID, psf.generalConfig.ShardHdrNonceHashStorage.DB.FilePath) + shardID
shardHdrHashNonceConfig.FilePath = dbPath
shardHdrHashNonceUnit, err := storageunit.NewStorageUnitFromConf(
Expand Down Expand Up @@ -300,9 +299,6 @@ func (psf *StorageServiceFactory) CreateForShard() (dataRetriever.StorageService
return store, err
}

// TODO: split in 2 components shardStorageServiceCreator and metStorageServiceCreator that have a base which will contain the
// common storers

// CreateForMeta will return the storage service which contains all storers needed for metachain
func (psf *StorageServiceFactory) CreateForMeta() (dataRetriever.StorageService, error) {
// TODO: if there will be a differentiation between the creation or opening of a DB, the DBs could be destroyed on a defer
Expand Down

0 comments on commit a85aca1

Please sign in to comment.