Skip to content

Commit

Permalink
Make gateway ID parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
stalehd committed May 6, 2024
1 parent e9cdd16 commit ae43db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commonopt/collection_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type CollectionAndGateway struct {
type CollectionAndDeviceOrGateway struct {
CollectionID string `long:"collection-id" env:"SPAN_COLLECTION_ID" description:"Span collection ID" required:"yes"`
DeviceID string `long:"device-id" env:"SPAN_DEVICE_ID" description:"device id" required:"no"`
GatewayID string `long:"gateway-id" env:"SPAN_GATEWAY_ID" description:"gateway id" required:"yes"`
GatewayID string `long:"gateway-id" env:"SPAN_GATEWAY_ID" description:"gateway id" required:"no"`
}

func (c *CollectionAndDeviceOrGateway) Valid() bool {
Expand Down

0 comments on commit ae43db6

Please sign in to comment.