Skip to content

Commit

Permalink
Remove un-used fields
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Nov 12, 2024
1 parent f4ada20 commit dcbd138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 2 additions & 3 deletions cmd/conformance/gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ func storageConfigFromFlags() gcp.Config {
klog.Exit("--spanner must be set")
}
return gcp.Config{
ProjectID: *project,
Bucket: *bucket,
Spanner: *spanner,
Bucket: *bucket,
Spanner: *spanner,
}
}

Expand Down
6 changes: 0 additions & 6 deletions storage/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ const (

// Storage is a GCP based storage implementation for Tessera.
type Storage struct {
gcsClient *gcs.Client

bucket string

newCP options.NewCPFunc
parseCP options.ParseCPFunc
entriesPath options.EntriesPathFunc
Expand Down Expand Up @@ -104,8 +100,6 @@ type consumeFunc func(ctx context.Context, from uint64, entries []storage.Sequen

// Config holds GCP project and resource configuration for a storage instance.
type Config struct {
// ProjectID is the GCP project which hosts the storage bucket and Spanner database for the log.
ProjectID string
// Bucket is the name of the GCS bucket to use for storing log state.
Bucket string
// Spanner is the GCP resource URI of the spanner database instance to use.
Expand Down

0 comments on commit dcbd138

Please sign in to comment.