Skip to content
Snippets Groups Projects
Commit 31c60a67 authored by Erik Reid's avatar Erik Reid
Browse files

added 'socket_timeout' param to redis/sentinel config schema

parent c4203334
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,11 @@ CONFIG_SCHEMA = {
},
"required": ["hostname", "dbname", "username", "password"],
"additionalProperties": False
},
"timeout": {
"type": "number",
"maximum": 10, # sanity
"exclusiveMinimum": 0
}
},
......@@ -37,7 +41,8 @@ CONFIG_SCHEMA = {
"type": "object",
"properties": {
"hostname": {"type": "string"},
"port": {"type": "integer"}
"port": {"type": "integer"},
"socket_timeout": {"$ref": "#/definitions/timeout"}
},
"required": ["hostname", "port"],
"additionalProperties": False
......@@ -47,7 +52,8 @@ CONFIG_SCHEMA = {
"properties": {
"hostname": {"type": "string"},
"port": {"type": "integer"},
"name": {"type": "string"}
"name": {"type": "string"},
"socket_timeout": {"$ref": "#/definitions/timeout"}
},
"required": ["hostname", "port", "name"],
"additionalProperties": False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment