Skip to content

Commit

Permalink
fixed error in retain config (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: PricelessRabbit <[email protected]>
  • Loading branch information
pricelessrabbit authored Nov 5, 2020
1 parent 32ca230 commit cdbc6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
defMqttMTLS = "false"
defMqttCA = "ca.crt"
defMqttQoS = "0"
defMqttRetain = false
defMqttRetain = "false"
defMqttCert = "thing.cert"
defMqttPrivKey = "thing.key"
defConfigFile = "../configs/config.toml"
Expand Down Expand Up @@ -141,7 +141,7 @@ func loadConfigs() (exp.Config, error) {
if err != nil {
mqttMTLS = false
}
mqttRetain, err := strconv.ParseBool(mainflux.Env(envMqttMTLS, defMqttMTLS))
mqttRetain, err := strconv.ParseBool(mainflux.Env(envMqttRetain, defMqttRetain))
if err != nil {
mqttRetain = false
}
Expand Down

0 comments on commit cdbc6f2

Please sign in to comment.