Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
  • Loading branch information
mteodor committed Sep 5, 2019
1 parent 1bccf19 commit a1e307b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/mqtt-bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func Benchmark(cfg Config) {

// Subscribers
for i := 0; i < cfg.Test.Subs; i++ {
mfConn := mf.Channels[i%n]
mfChan := mf.Channels[i%n]
mfThing := mf.Things[i%n]

if cfg.MQTT.TLS.MTLS {
Expand All @@ -152,7 +152,7 @@ func Benchmark(cfg Config) {
BrokerURL: cfg.MQTT.Broker.URL,
BrokerUser: mfThing.ThingID,
BrokerPass: mfThing.ThingKey,
MsgTopic: getTopic(mfConn.ChannelID, startStamp),
MsgTopic: getTopic(mfChan.ChannelID, startStamp),
MsgSize: cfg.MQTT.Message.Size,
MsgCount: cfg.Test.Count,
MsgQoS: byte(cfg.MQTT.Message.QoS),
Expand All @@ -176,7 +176,7 @@ func Benchmark(cfg Config) {
start := time.Now()

for i := 0; i < cfg.Test.Pubs; i++ {
mfConn := mf.Channels[i%n]
mfChan := mf.Channels[i%n]
mfThing := mf.Things[i%n]

if cfg.MQTT.TLS.MTLS {
Expand All @@ -191,7 +191,7 @@ func Benchmark(cfg Config) {
BrokerURL: cfg.MQTT.Broker.URL,
BrokerUser: mfThing.ThingID,
BrokerPass: mfThing.ThingKey,
MsgTopic: getTopic(mfConn.ChannelID, startStamp),
MsgTopic: getTopic(mfChan.ChannelID, startStamp),
MsgSize: cfg.MQTT.Message.Size,
MsgCount: cfg.Test.Count,
MsgQoS: byte(cfg.MQTT.Message.QoS),
Expand Down

0 comments on commit a1e307b

Please sign in to comment.