forked from FoundKeyGang/FoundKey
remove outgoingAddressFamily
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
|
# deliverJobMaxAttempts: 12
|
||||||
# inboxJobMaxAttempts: 8
|
# inboxJobMaxAttempts: 8
|
||||||
|
|
||||||
# IP address family used for outgoing requests (ipv4, ipv6 or dual)
|
|
||||||
#outgoingAddressFamily: ipv4
|
|
||||||
|
|
||||||
# Syslog option
|
# Syslog option
|
||||||
#syslog:
|
#syslog:
|
||||||
# host: localhost
|
# host: localhost
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import Logger from '@/services/logger.js';
|
import Logger from '@/services/logger.js';
|
||||||
import { IpFamily } from './types.js';
|
|
||||||
import config from './index.js';
|
import config from './index.js';
|
||||||
|
|
||||||
const logger = new Logger('config:redis', 'gray', false);
|
const logger = new Logger('config:redis', 'gray', false);
|
||||||
|
|
||||||
function getRedisFamily(family?: IpFamily | number): number {
|
function getRedisFamily(family?: string | number): number {
|
||||||
const familyMap = {
|
const familyMap = {
|
||||||
ipv4: 4,
|
ipv4: 4,
|
||||||
ipv6: 6,
|
ipv6: 6,
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
/**
|
|
||||||
* IP address family
|
|
||||||
*/
|
|
||||||
export type IpFamily = 'ipv4' | 'ipv6' | 'dual';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration options set up by the user
|
* Configuration options set up by the user
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +19,7 @@ export type Source = {
|
||||||
redis: {
|
redis: {
|
||||||
host: string;
|
host: string;
|
||||||
port: number;
|
port: number;
|
||||||
family?: number | IpFamily;
|
family?: number | 'dual' | 'ipv4' | 'ipv6';
|
||||||
pass: string;
|
pass: string;
|
||||||
db?: number;
|
db?: number;
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
|
@ -52,8 +47,6 @@ export type Source = {
|
||||||
|
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
outgoingAddressFamily?: IpFamily;
|
|
||||||
|
|
||||||
deliverJobConcurrency?: number;
|
deliverJobConcurrency?: number;
|
||||||
inboxJobConcurrency?: number;
|
inboxJobConcurrency?: number;
|
||||||
deliverJobPerSec?: number;
|
deliverJobPerSec?: number;
|
||||||
|
|
Loading…
Reference in a new issue