mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-06-29 06:42:36 +00:00
Removed useless log statement, changed client factory receivers from pointers to struct.
This commit is contained in:
parent
124555b8d7
commit
e5c73829cb
|
@ -13,10 +13,10 @@ type BigtableClientFactory struct {
|
|||
TokenSource oauth2.TokenSource
|
||||
}
|
||||
|
||||
func (s *BigtableClientFactory) NewInstanceAdminClient(project string) (*bigtable.InstanceAdminClient, error) {
|
||||
func (s BigtableClientFactory) NewInstanceAdminClient(project string) (*bigtable.InstanceAdminClient, error) {
|
||||
return bigtable.NewInstanceAdminClient(context.Background(), project, option.WithTokenSource(s.TokenSource), option.WithUserAgent(s.UserAgent))
|
||||
}
|
||||
|
||||
func (s *BigtableClientFactory) NewAdminClient(project, instance string) (*bigtable.AdminClient, error) {
|
||||
func (s BigtableClientFactory) NewAdminClient(project, instance string) (*bigtable.AdminClient, error) {
|
||||
return bigtable.NewAdminClient(context.Background(), project, instance, option.WithTokenSource(s.TokenSource), option.WithUserAgent(s.UserAgent))
|
||||
}
|
||||
|
|
|
@ -192,7 +192,6 @@ func (c *Config) loadAndValidate() error {
|
|||
}
|
||||
c.clientBigQuery.UserAgent = userAgent
|
||||
|
||||
log.Printf("[INFO] Instantiating Google Cloud Bigtable Client Factory...")
|
||||
c.bigtableClientFactory = &BigtableClientFactory{
|
||||
UserAgent: userAgent,
|
||||
TokenSource: tokenSource,
|
||||
|
|
Loading…
Reference in New Issue
Block a user