Removed useless log statement, changed client factory receivers from pointers to struct.

This commit is contained in:
Riley Karson 2017-07-11 16:13:46 -07:00
parent 124555b8d7
commit e5c73829cb
2 changed files with 2 additions and 3 deletions

View File

@ -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))
}

View File

@ -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,