Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Feb 5, 2025
1 parent 7a5f560 commit 84c5183
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions rest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,20 +451,6 @@ func (dbConfig *DbConfig) setDatabaseCredentials(credentials base.CredentialsCon
}
}

// getBucketConfigFromBoostrap will take bootstrap config credentials and return a BucketConfig. Note bucket name will
// be empty string given we don't specify a bucket to connect to here
func getBucketConfigFromBoostrap(config BootstrapConfig) BucketConfig {
return BucketConfig{
Server: &config.Server,
Username: config.Username,
Password: config.Password,
CertPath: config.X509CertPath,
KeyPath: config.X509KeyPath,
CACertPath: config.CACertPath,
Bucket: base.StringPtr(""),
}
}

// setup populates fields in the dbConfig
func (dbConfig *DbConfig) setup(ctx context.Context, dbName string, bootstrapConfig BootstrapConfig, dbCredentials, bucketCredentials *base.CredentialsConfig, forcePerBucketAuth bool) error {
dbConfig.Name = dbName
Expand Down

0 comments on commit 84c5183

Please sign in to comment.