summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-04-15 20:32:06 +0300
committerValery Piashchynski <[email protected]>2020-04-15 20:32:06 +0300
commit23356ac33b7619db980a11b5eb466a79ec517466 (patch)
tree28821580c27fdab9e80e6f8a06b6366a7702d5b7 /server_config.go
parent6625950ac6f382f6a46bc52bf17908ef13bdc429 (diff)
NPE fix
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/server_config.go b/server_config.go
index 7b11e309..3714971c 100644
--- a/server_config.go
+++ b/server_config.go
@@ -41,7 +41,7 @@ type ServerConfig struct {
Pool *Config
// values defines set of values to be passed to the command context.
- mu *sync.Mutex
+ mu sync.Mutex
env map[string]string
}
@@ -54,8 +54,6 @@ func (cfg *ServerConfig) InitDefaults() error {
cfg.Pool = &Config{}
}
- cfg.mu = &sync.Mutex{}
-
return cfg.Pool.InitDefaults()
}