Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: unexport Server #108010

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

knz
Copy link
Contributor

@knz knz commented Aug 2, 2023

We should really look at top level servers through an interface.

Epic: CRDB-28893

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the 20230802-unexport-server branch 2 times, most recently from 8a59e39 to 340374f Compare August 2, 2023 15:46
@knz knz marked this pull request as ready for review August 2, 2023 15:46
@knz knz requested review from a team as code owners August 2, 2023 15:46
@knz knz requested a review from a team August 2, 2023 15:46
@knz knz requested review from a team as code owners August 2, 2023 15:46
@knz knz requested review from herkolategan, smg260, nkodali, stevendanna and yuzefovich and removed request for a team August 2, 2023 15:46
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 29 of 29 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan, @knz, @nkodali, @smg260, and @stevendanna)


pkg/server/serverctl/api.go line 59 at r1 (raw file):

}

// serverShutdownInterface is the subset of the APIs on a server

nit: s/serverShutdownInterface/ServerShutdownInterface/.


pkg/server/serverctl/api.go line 68 at r1 (raw file):

// ShutdownRequest is used to signal a request to shutdown the server through
// stopTrigger. It carries the reason for the shutdown.

nit: stopTrigger is no longer next to this struct, perhaps do server.stopTrigger or reword the comment?

We should really only look at top level servers through an interface.

Release note: None
Copy link
Contributor Author

@knz knz left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan, @nkodali, @smg260, and @stevendanna)


pkg/server/serverctl/api.go line 59 at r1 (raw file):

Previously, yuzefovich (Yahor Yuzefovich) wrote…

nit: s/serverShutdownInterface/ServerShutdownInterface/.

Done.


pkg/server/serverctl/api.go line 68 at r1 (raw file):

Previously, yuzefovich (Yahor Yuzefovich) wrote…

nit: stopTrigger is no longer next to this struct, perhaps do server.stopTrigger or reword the comment?

Done.

@knz knz force-pushed the 20230802-unexport-server branch from 340374f to d9f6b1a Compare August 2, 2023 19:35
@knz
Copy link
Contributor Author

knz commented Aug 2, 2023

TFYR!

bors r=yuzefovich

@craig
Copy link
Contributor

craig bot commented Aug 2, 2023

Build succeeded:

@craig craig bot merged commit 602bc79 into cockroachdb:master Aug 2, 2023
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