diff options
author | Wolfy-J <[email protected]> | 2020-10-28 13:03:32 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-28 13:03:32 +0300 |
commit | 126026f11f9b0108d80a3eb46097aabf9b31aa05 (patch) | |
tree | 61eb68871b69638bc523c5b7f910d6999bc4539e /plugins/rpc/config.go | |
parent | 2d3349eee632e7357ed1eb6905444194a28a4ec0 (diff) |
- added RPC logging
Diffstat (limited to 'plugins/rpc/config.go')
-rwxr-xr-x | plugins/rpc/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/rpc/config.go b/plugins/rpc/config.go index 719fd5e3..1a599695 100755 --- a/plugins/rpc/config.go +++ b/plugins/rpc/config.go @@ -8,7 +8,7 @@ import ( "github.com/spiral/roadrunner/v2/util" ) -// Config defines RPC service config. +// Config defines RPC service cfg. type Config struct { // Listen string Listen string @@ -17,14 +17,14 @@ type Config struct { Disabled bool } -// InitDefaults allows to init blank config with pre-defined set of default values. +// InitDefaults allows to init blank cfg 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 config is valid. +// Valid returns nil if cfg 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)") |