Skip to content

Commit

Permalink
fix: Correct Lint Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Jun 6, 2021
1 parent 74fc161 commit bda8f4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions internal/cmd/publish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ import (
)

const (
TopicFlag = "topic"
QoSFlag = "qos"
// TopicFlag used with cobra to read the topic flag from user.
TopicFlag = "topic"
// QoSFlag used with cobra to read the qos flag from user.
QoSFlag = "qos"
// RetainedFlag used with cobra to read the retained flag from user.
RetainedFlag = "retained"
PayloadFlag = "payload"
// PayloadFlag used with cobra to read the payload flag from user.
PayloadFlag = "payload"

// Timeout for disconnecting from brokers.
Timeout = 10
)

Expand Down
5 changes: 4 additions & 1 deletion internal/cmd/subscribe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ import (
)

const (
// TopicFlag used with cobra to read the topic flag from user.
TopicFlag = "topic"
QoSFlag = "qos"
// QoSFlag used with cobra to read the qos flag from user.
QoSFlag = "qos"

// Timeout for disconnecting from brokers.
Timeout = 10
)

Expand Down

0 comments on commit bda8f4d

Please sign in to comment.