Skip to content

Commit

Permalink
ah shit
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanmani1122 committed Nov 11, 2024
1 parent c4d31de commit f64eadf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/tools-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.BRANCH_NAME }}
# with:
# ref: ${{ github.event.inputs.BRANCH_NAME }}

- name: Generate Timestamp
run: |
Expand Down Expand Up @@ -43,9 +43,11 @@ jobs:
name: Create Tools Docker Image

on:
workflow_dispatch:
inputs:
BRANCH_NAME:
default: main
description: Branch to build the image from
required: true
# workflow_dispatch:
# inputs:
# BRANCH_NAME:
# default: main
# description: Branch to build the image from
# required: true
push:
branches: ['usman/app-base']
4 changes: 1 addition & 3 deletions app/api/logs/block-height/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ timestamp >= "${startTime}" AND timestamp <= "${endTime}"
if (!response.ok)
if (response.status === 429) {
console.log('Hit quota limit, backing off for 10 seconds');
await Promise.resolve((resolve: () => void) =>
setTimeout(resolve, 10000),
);
await new Promise((resolve) => setTimeout(resolve, 10000));
return queryLog(
accessToken,
endTime,
Expand Down

0 comments on commit f64eadf

Please sign in to comment.