summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-28 15:38:37 +0300
committerWolfy-J <[email protected]>2020-10-28 15:38:37 +0300
commit2f2a0f90d0ff5ef773f17451bfa2c679604562f7 (patch)
tree62e872adb36c836ae64f33745e25b06bbbe0e9e5
parent42cb82dbca79fcb47633b203d2d4ea9b0a59a176 (diff)
- fix cfg typos
-rwxr-xr-xplugins/rpc/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/rpc/config.go b/plugins/rpc/config.go
index 802ed5ba..719fd5e3 100755
--- a/plugins/rpc/config.go
+++ b/plugins/rpc/config.go
@@ -17,14 +17,14 @@ type Config struct {
Disabled bool
}
-// InitDefaults allows to init blank cfg with pre-defined set of default values.
+// InitDefaults allows to init blank config with pre-defined set of default values.
func (c *Config) InitDefaults() {
if c.Listen == "" {
c.Listen = "tcp://127.0.0.1:6001"
}
}
-// Valid returns nil if cfg is valid.
+// Valid returns nil if config is valid.
func (c *Config) Valid() error {
if dsn := strings.Split(c.Listen, "://"); len(dsn) != 2 {
return errors.New("invalid socket DSN (tcp://:6001, unix://file.sock)")