Skip to content

Commit

Permalink
Use CamelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
zstadler authored Dec 1, 2024
1 parent 9392785 commit 81bb40e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pmtiles/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func partSizeBytes(totalSize int64) int {
}

// Upload a pmtiles archive to a bucket.
func Upload(logger *log.Logger, inputpmtiles string, bucket string, remotepmtiles string, maxConcurrency int) error {
func Upload(logger *log.Logger, InputPMTiles string, bucket string, RemotePMTiles string, maxConcurrency int) error {
ctx := context.Background()

b, err := blob.OpenBucket(ctx, bucket)
Expand All @@ -28,7 +28,7 @@ func Upload(logger *log.Logger, inputpmtiles string, bucket string, remotepmtile
}
defer b.Close()

f, err := os.Open(inputpmtiles)
f, err := os.Open(InputPMTiles)
if err != nil {
return fmt.Errorf("Failed to open file: %w", err)
}
Expand All @@ -44,7 +44,7 @@ func Upload(logger *log.Logger, inputpmtiles string, bucket string, remotepmtile
MaxConcurrency: maxConcurrency,
}

w, err := b.NewWriter(ctx, remotepmtiles, opts)
w, err := b.NewWriter(ctx, RemotePMTiles, opts)
if err != nil {
return fmt.Errorf("Failed to obtain writer: %w", err)
}
Expand Down

0 comments on commit 81bb40e

Please sign in to comment.