Skip to content

chore: Refactor common server cli components for reusability #7103

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

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make fmt
  • Loading branch information
Emyrk committed Apr 12, 2023
commit bd9d9a0a2f37b051283accf63fd04bec349c3a39
4 changes: 1 addition & 3 deletions cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
defer scd.Close()
ctx := scd.Ctx

var (
logger = scd.Logger
)
logger := scd.Logger

// Disable rate limits if the `--dangerous-disable-rate-limits` flag
// was specified.
Expand Down