Skip to content
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const (
// Maps API key ID
MapsAPIKeyID = "maps-api-key"
// Mixer API key
MixerAPIKeyID = "mixer-api-key"
MixerAPIKeyID = "dc-api-key"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since this constant now points to "dc-api-key", keeping the name MixerAPIKeyID is misleading and can cause confusion. Consider renaming the constant to DCAPIKeyID to accurately reflect its value.

Note that you will also need to update:

  1. The comment on line 65 to // DC API key.
  2. Its reference in internal/server/server.go (line 138).
Suggested change
MixerAPIKeyID = "dc-api-key"
DCAPIKeyID = "dc-api-key"

)

var childTypeDenyList = map[string]struct{}{
Expand Down
Loading