aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.go b/config.go
index 47b69f9..e991516 100644
--- a/config.go
+++ b/config.go
@@ -64,6 +64,7 @@ var configWithPointers struct {
Expr *int `scfg:"expr"`
} `scfg:"auth"`
Perf struct {
+ SendQ *int `scfg:"sendq"`
MessageArgumentsCap *int `scfg:"msg_args_cap"`
MessageBytesCap *int `scfg:"msg_bytes_cap"`
ReadHeaderTimeout *int `scfg:"read_header_timeout"`
@@ -99,6 +100,7 @@ var config struct {
Expr int
}
Perf struct {
+ SendQ int
MessageArgumentsCap int
MessageBytesCap int
ReadHeaderTimeout int
@@ -254,6 +256,14 @@ func fetchConfig(path string) (retErr error) {
}
config.Auth.Expr = *(configWithPointers.Auth.Expr)
+ if configWithPointers.Perf.SendQ == nil {
+ return fmt.Errorf(
+ "%w: perf.sendq",
+ errMissingConfigValue,
+ )
+ }
+ config.Perf.SendQ = *(configWithPointers.Perf.SendQ)
+
if configWithPointers.Perf.MessageArgumentsCap == nil {
return fmt.Errorf(
"%w: perf.msg_args_cap",