Skip to content

Commit

Permalink
Fix: Block factory config interface (#8538)
Browse files Browse the repository at this point in the history
* Fix: Block factory config interface

* CR Fixes
  • Loading branch information
N-o-Z authored Jan 22, 2025
1 parent 4652933 commit 6fd5061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/block/factory/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (

"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/block/factory"
"github.com/treeverse/lakefs/pkg/block/params"
"github.com/treeverse/lakefs/pkg/config"
"github.com/treeverse/lakefs/pkg/stats"
)

func BuildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c params.AdapterConfig) (block.Adapter, error) {
adapter, err := factory.BuildBlockAdapter(ctx, statsCollector, c)
func BuildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c config.Config) (block.Adapter, error) {
adapter, err := factory.BuildBlockAdapter(ctx, statsCollector, c.GetBaseConfig())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6fd5061

Please sign in to comment.