Skip to content

ccl/sqlproxyccl: lazily initialize closedCh#57233

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
jbowens:jackson/lazychannel
Dec 1, 2020
Merged

ccl/sqlproxyccl: lazily initialize closedCh#57233
craig[bot] merged 1 commit intocockroachdb:masterfrom
jbowens:jackson/lazychannel

Conversation

@jbowens
Copy link
Copy Markdown
Contributor

@jbowens jbowens commented Nov 30, 2020

Lazily initialize sqlproxyccl.Conn's closedCh. This avoids
allocating a channel when it's not needed and allows package consumers
to construct their own sqlproxyccl.Conns without needing access to the
unexported closedCh member field.

Lazily initialize `sqlproxyccl.Conn`'s `closedCh`. This avoids
allocating a channel when it's not needed and allows package consumers
to construct their own `sqlproxyccl.Conn`s without needing access to the
unexported `closedCh` member field.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @petermattis and @spaskob)

Copy link
Copy Markdown
Contributor Author

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTR!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @spaskob)

@jbowens
Copy link
Copy Markdown
Contributor Author

jbowens commented Dec 1, 2020

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 1, 2020

Build succeeded:

@craig craig bot merged commit a654511 into cockroachdb:master Dec 1, 2020
@jbowens jbowens deleted the jackson/lazychannel branch December 1, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants