Skip to content

Commit

Permalink
Use US spelling for license
Browse files Browse the repository at this point in the history
Instead of British `licence`
  • Loading branch information
pondzix committed May 28, 2024
1 parent ba8c14c commit ff92baf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion assets/docs/configuration/overview-full-example.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,8 @@ stats_receiver {
}

// log level configuration (default: "info")
log_level = "info"
log_level = "info"

license {
accept = true
}
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type configurationData struct {
LogLevel string `hcl:"log_level,optional" env:"LOG_LEVEL"`
UserProvidedID string `hcl:"user_provided_id,optional" env:"USER_PROVIDED_ID"`
DisableTelemetry bool `hcl:"disable_telemetry,optional" env:"DISABLE_TELEMETRY"`
Licence *licenceConfig `hcl:"licence,block"`
License *licenseConfig `hcl:"license,block"`
}

// component is a type to abstract over configuration blocks.
Expand Down Expand Up @@ -91,7 +91,7 @@ type statsConfig struct {
BufferSec int `hcl:"buffer_sec,optional" env:"STATS_RECEIVER_BUFFER_SEC"`
}

type licenceConfig struct {
type licenseConfig struct {
Accept bool `hcl:"accept,optional"`
}

Expand All @@ -116,7 +116,7 @@ func defaultConfigData() *configurationData {
Transformations: nil,
LogLevel: "info",
DisableTelemetry: false,
Licence: &licenceConfig{
License: &licenseConfig{
Accept: false,
},
}
Expand Down

0 comments on commit ff92baf

Please sign in to comment.