(configSproxyd)
| 112 | } |
| 113 | |
| 114 | function parseSproxydConfig(configSproxyd) { |
| 115 | const joiSchema = joi.object({ |
| 116 | bootstrap: joi.array().items(joi.string()).min(1), |
| 117 | chordCos: joi.number().integer().min(0).max(6), |
| 118 | path: joi.string(), |
| 119 | }); |
| 120 | return joi.attempt(configSproxyd, joiSchema, 'bad config'); |
| 121 | } |
| 122 | |
| 123 | function parseRedisConfig(redisConfig) { |
| 124 | const joiSchema = joi.object({ |
no outgoing calls
no test coverage detected