diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-20 10:09:12 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-20 10:09:12 +0100 |
commit | 09bb9e12fcd0336af2a3a9f9aacc6384ac004943 (patch) | |
tree | 8f63a8fadcf3f823c86d06e29cc938065a345687 /config | |
parent | d8d9b04ebbdfff0dd3d952d2658f117d47730c9d (diff) |
move package mqtt to package catbus, make more convenient
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go index b31551f..fddc3f0 100644 --- a/config/config.go +++ b/config/config.go @@ -12,7 +12,7 @@ import ( type ( Config struct { - Broker string + BrokerURI string MACsByTopic map[string]net.HardwareAddr } @@ -46,7 +46,7 @@ func ParseFile(path string) (*Config, error) { func configFromConfig(raw config) *Config { c := &Config{ - Broker: raw.MQTTBroker, + BrokerURI: raw.MQTTBroker, MACsByTopic: map[string]net.HardwareAddr{}, } |