Skip to content

Commit

Permalink
fix: use ctx for NewService (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg committed May 17, 2021
1 parent 18c58a1 commit 77fd677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func NewDialer(ctx context.Context, opts ...DialerOption) (*Dialer, error) {
cfg.rsaKey = key
}

client, err := sqladmin.NewService(context.Background(), cfg.sqladminOpts...)
client, err := sqladmin.NewService(ctx, cfg.sqladminOpts...)
if err != nil {
return nil, fmt.Errorf("failed to create sqladmin client: %v", err)
}
Expand Down

0 comments on commit 77fd677

Please sign in to comment.