Skip to content

Commit

Permalink
fix: properly parse bucket name and path (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout authored Oct 10, 2024
1 parent 9f3bc7c commit f52ea57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions op-da/da/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/url"
"os"
"strings"
"sync/atomic"

altda "github.com/ethereum-optimism/optimism/op-alt-da"
Expand Down Expand Up @@ -68,8 +67,7 @@ func newStore(cfg *CLIConfig) (altda.KVStore, error) {
}
switch u.Scheme {
case "s3":
split := strings.SplitN(u.Path, "/", 2)
return NewS3store(split[0], split[1]), nil
return NewS3store(u.Host, u.Path), nil
case "file":
err = os.MkdirAll(u.Path, os.FileMode(0755))
if err != nil {
Expand Down

0 comments on commit f52ea57

Please sign in to comment.