Skip to content

engine: clean up variable names for {Reader,Writer,ReadWriter} types#43271

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:191217.name-cleanup-pkg-engine
Dec 18, 2019
Merged

engine: clean up variable names for {Reader,Writer,ReadWriter} types#43271
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:191217.name-cleanup-pkg-engine

Conversation

@irfansharif
Copy link
Copy Markdown
Contributor

We should be using {reader,writer,readWriter} for
{Reader,Writer,ReadWriter} respectively instead.

(Same thing as #43265, but for pkg/storage/engine).

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:

Did you use a tool (e.g. go-rename) to automate this?

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


pkg/storage/engine/engine_test.go, line 247 at r1 (raw file):

			}

			apply := func(readWriter ReadWriter, d data) error {

There is a bit of stuttering in this naming. How do you feel about s/readWriter/rw/g?

@irfansharif irfansharif force-pushed the 191217.name-cleanup-pkg-engine branch from a7ccb79 to b15d5a8 Compare December 18, 2019 02:31
Copy link
Copy Markdown
Contributor Author

@irfansharif irfansharif left a comment

Choose a reason for hiding this comment

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

TFTR. Just used sed to change out function signatures breaking the build, then used regular ol' search and replace to fix after the fact.

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


pkg/storage/engine/engine_test.go, line 247 at r1 (raw file):

Previously, petermattis (Peter Mattis) wrote…

There is a bit of stuttering in this naming. How do you feel about s/readWriter/rw/g?

Done.

We should be using {reader,writer,readWriter} for
{Reader,Writer,ReadWriter} respectively instead.

Release note: None
@irfansharif irfansharif force-pushed the 191217.name-cleanup-pkg-engine branch from b15d5a8 to 886bb96 Compare December 18, 2019 02:54
@irfansharif
Copy link
Copy Markdown
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Dec 18, 2019
43271: engine: clean up variable names of `{Reader,Writer,ReadWriter}` types r=irfansharif a=irfansharif

We should be using {reader,writer,readWriter} for
{Reader,Writer,ReadWriter} respectively instead.

(Same thing as #43265, but for pkg/storage/engine).

Release note: None

Co-authored-by: irfan sharif <irfanmahmoudsharif@gmail.com>
@irfansharif irfansharif changed the title engine: clean up variable names of {Reader,Writer,ReadWriter} types engine: clean up variable names for {Reader,Writer,ReadWriter} types Dec 18, 2019
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 18, 2019

Build succeeded

@craig craig bot merged commit 886bb96 into cockroachdb:master Dec 18, 2019
@irfansharif irfansharif deleted the 191217.name-cleanup-pkg-engine branch December 18, 2019 03:35
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