Merge pull request #3150 from mempool/ops/update-warm-cache-new-pool-slugs

ops: Update nginx-cache-warmer for new pool slugs API
This commit is contained in:
wiz 2023-02-26 16:20:51 +09:00 committed by GitHub
commit 75faa2b45a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/usr/bin/env zsh
hostname=$(hostname)
slugs=(`curl -sSL https://raw.githubusercontent.com/mempool/mining-pools/master/pools.json | jq -r '.slugs[]'`)
slugs=(`curl -sSL https://${hostname}/api/v1/mining/pools/3y|jq -r -S '(.pools[].slug)'`)
warm()
{