remove outgoingAddressFamily
Some checks failed
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed
Some checks failed
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed
This commit is contained in:
parent
29164740b9
commit
8ca544c45d
3 changed files with 2 additions and 13 deletions
|
@ -93,9 +93,6 @@ redis:
|
|||
# deliverJobMaxAttempts: 12
|
||||
# inboxJobMaxAttempts: 8
|
||||
|
||||
# IP address family used for outgoing requests (ipv4, ipv6 or dual)
|
||||
#outgoingAddressFamily: ipv4
|
||||
|
||||
# Syslog option
|
||||
#syslog:
|
||||
# host: localhost
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import Logger from '@/services/logger.js';
|
||||
import { IpFamily } from './types.js';
|
||||
import config from './index.js';
|
||||
|
||||
const logger = new Logger('config:redis', 'gray', false);
|
||||
|
||||
function getRedisFamily(family?: IpFamily | number): number {
|
||||
function getRedisFamily(family?: string | number): number {
|
||||
const familyMap = {
|
||||
ipv4: 4,
|
||||
ipv6: 6,
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/**
|
||||
* IP address family
|
||||
*/
|
||||
export type IpFamily = 'ipv4' | 'ipv6' | 'dual';
|
||||
|
||||
/**
|
||||
* Configuration options set up by the user
|
||||
*/
|
||||
|
@ -24,7 +19,7 @@ export type Source = {
|
|||
redis: {
|
||||
host: string;
|
||||
port: number;
|
||||
family?: number | IpFamily;
|
||||
family?: number | 'dual' | 'ipv4' | 'ipv6';
|
||||
pass: string;
|
||||
db?: number;
|
||||
prefix?: string;
|
||||
|
@ -52,8 +47,6 @@ export type Source = {
|
|||
|
||||
id: string;
|
||||
|
||||
outgoingAddressFamily?: IpFamily;
|
||||
|
||||
deliverJobConcurrency?: number;
|
||||
inboxJobConcurrency?: number;
|
||||
deliverJobPerSec?: number;
|
||||
|
|
Loading…
Reference in a new issue