From 09bb9e12fcd0336af2a3a9f9aacc6384ac004943 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Sat, 20 Jun 2020 10:09:12 +0100 Subject: move package mqtt to package catbus, make more convenient --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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{}, } -- cgit v1.2.3