-
Notifications
You must be signed in to change notification settings - Fork 3
fix(snap): Refactor to avoid conflicts with readonly config provider directory #51
Conversation
…directory Signed-off-by: Mengyi Wang <[email protected]>
snap/local/helper-go/main.go
Outdated
@@ -19,6 +19,8 @@ import ( | |||
"os" | |||
) | |||
|
|||
const app = "kuiperd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a global variable called app
is confusing because this snap has two apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been updated to const daemonApp = "kuiperd"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment was about the confusion in name when set as a global variable in main.go, not the local variable in configure()
, but it is a good improvement in general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so would you like me to keep it as a local variable?
|
Co-authored-by: Farshid Tavakolizadeh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks
Changes to incorporate the following fixes:
For testing instructions, please refer to edgexfoundry/device-mqtt-go#535