Skip to content

Commit

Permalink
Remove unnecessary nonzero requirements in some fields of NoSQL confi…
Browse files Browse the repository at this point in the history
…g struct
  • Loading branch information
longquanzheng authored Jun 24, 2021
1 parent c4f2c09 commit 1cd5fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ type (
// NoSQL contains configuration to connect to NoSQL Database cluster
NoSQL struct {
// PluginName is the name of NoSQL plugin, default is "cassandra". Supported values: cassandra
PluginName string `yaml:"pluginName" validate:"nonzero"`
PluginName string `yaml:"pluginName"`
// Hosts is a csv of cassandra endpoints
Hosts string `yaml:"hosts" validate:"nonzero"`
// Port is the cassandra port used for connection by gocql client
Expand All @@ -180,7 +180,7 @@ type (
// Password is the cassandra password used for authentication by gocql client
Password string `yaml:"password"`
// Keyspace is the cassandra keyspace
Keyspace string `yaml:"keyspace" validate:"nonzero"`
Keyspace string `yaml:"keyspace"`
// Region is the region filter arg for cassandra
Region string `yaml:"region"`
// Datacenter is the data center filter arg for cassandra
Expand Down

0 comments on commit 1cd5fd2

Please sign in to comment.