Skip to content

Commit

Permalink
fix failing linter
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Dec 11, 2024
1 parent 7832b23 commit dfdc228
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proxy/config/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const tag = "latest"
type HTTPProxyConfig struct {
RegistryURL string `env:"REGISTRY_URL" envDefault:"localhost:5000"`
Authenticate bool `env:"AUTHENTICATE" envDefault:"false"`
Username string `env:"USERNAME" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
Username string `env:"USERNAME" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
}

func LoadHTTPConfig(opts env.Options) (*HTTPProxyConfig, error) {
Expand Down
2 changes: 1 addition & 1 deletion proxy/config/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

type MQTTProxyConfig struct {
BrokerURL string `env:"BROKER_URL" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
PropletID string `env:"PROPLET_ID" envDefault:""`
ChannelID string `env:"CHANNEL_ID" envDefault:""`
}
Expand Down
2 changes: 1 addition & 1 deletion proxy/mqtt/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *RegistryClient) Subscribe(ctx context.Context, containerChan chan<- str
handler := func(client mqtt.Client, msg mqtt.Message) {
data := msg.Payload()

var payLoad = struct {
payLoad := struct {
Appname string `json:"app_name"`
}{
Appname: "",
Expand Down

0 comments on commit dfdc228

Please sign in to comment.