Skip to content

Commit

Permalink
fix: fix the upstream timeout unit (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
stu01509 authored Mar 15, 2021
1 parent 648fe3b commit 40d1dab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions web/cypress/fixtures/export-route-dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
}
],
"timeout": {
"connect": 6000,
"read": 6000,
"send": 6000
"connect": 6,
"read": 6,
"send": 6
},
"type": "roundrobin",
"pass_host": "pass"
Expand Down Expand Up @@ -92,9 +92,9 @@
}
],
"timeout": {
"connect": 6000,
"read": 6000,
"send": 6000
"connect": 6,
"read": 6,
"send": 6
},
"type": "roundrobin",
"pass_host": "pass"
Expand Down Expand Up @@ -143,9 +143,9 @@
}
],
"timeout": {
"connect": 6000,
"read": 6000,
"send": 6000
"connect": 6,
"read": 6,
"send": 6
},
"type": "roundrobin",
"pass_host": "pass"
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Upstream/UpstreamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const UpstreamForm: React.FC<Props> = forwardRef(
</>
);

const TimeUnit = () => <span style={{ margin: '0 8px' }}>ms</span>;
const TimeUnit = () => <span style={{ margin: '0 8px' }}>s</span>;
const NodeList = () => (
<Form.List name="nodes">
{(fields, { add, remove }) => (
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/Upstream/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const DEFAULT_UPSTREAM = {
nodes: [{ host: '', port: 80, weight: 1 }],
type: 'roundrobin',
timeout: {
connect: 6000,
send: 6000,
read: 6000,
connect: 6,
send: 6,
read: 6,
},
};

0 comments on commit 40d1dab

Please sign in to comment.