Skip to content

Commit

Permalink
make blockstore type config to be not case sensitive (#8146)
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovo authored Sep 9, 2024
1 parent 11fea02 commit 7f2dd7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/block/factory/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package factory
import (
"context"
"fmt"
"strings"

"cloud.google.com/go/storage"
"github.com/aws/aws-sdk-go-v2/service/s3"
Expand Down Expand Up @@ -35,7 +36,7 @@ func BuildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c pa
}

func buildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c params.AdapterConfig) (block.Adapter, error) {
blockstore := c.BlockstoreType()
blockstore := strings.ToLower(c.BlockstoreType())
logging.FromContext(ctx).
WithField("type", blockstore).
Info("initialize blockstore adapter")
Expand Down

0 comments on commit 7f2dd7c

Please sign in to comment.