Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the flags that enable/disable a component use 'Enabled' for co… #60

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/xmidt-agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Config struct {
}

type Websocket struct {
// Disable determines whether or not to disable xmidt-agent's websocket
Disable bool
// Enabled determines whether or not to enable xmidt-agent's websocket
Enabled bool
// URLPath is the device registration url path
URLPath string
// AdditionalHeaders are any additional headers for the WS connection.
Expand Down
2 changes: 1 addition & 1 deletion cmd/xmidt-agent/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type wsOut struct {
}

func provideWS(in wsIn) (wsOut, error) {
if in.Websocket.Disable {
if !in.Websocket.Enabled {
return wsOut{}, nil
}

Expand Down
Loading