Skip to content

Commit

Permalink
timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Aug 5, 2024
1 parent 504bf85 commit 6b0e2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cicd/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function getGapSubnet(config) {
params: ["latest"],
id: 1,
};
await axios.post(config.subnetURL, data, {timeout: 2000}).then((response) => {
await axios.post(config.subnetURL, data, {timeout: 10000}).then((response) => {
console.log(response)
if (response.status == 200) {
epochBlockNum = response.data.result.EpochBlockNumber;
Expand All @@ -94,7 +94,7 @@ async function getEpochParentnet(config) {
params: ["latest"],
id: 1,
};
await axios.post(config.parentnetURL, data).then((response) => {
await axios.post(config.parentnetURL, data, {timeout: 10000}).then((response) => {
if (response.status == 200) {
epochBlockNum = response.data.result.EpochBlockNumber;
console.log("epochBlockNum", epochBlockNum)
Expand Down

0 comments on commit 6b0e2ee

Please sign in to comment.