Skip to content

Commit

Permalink
Exclude Chain Registry template directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jun 24, 2023
1 parent 6efca0b commit a1cc7a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chainWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ async function queueChainCheck(client, registry, monitor) {
(async () => {
const client = await redisClient();

const chainRepo = Repository(client, chainUrl, chainBranch, { path: chainPath, require: 'chain.json' })
const validatorRepo = Repository(client, validatorUrl, validatorBranch, { exclude: [], require: 'chains.json', storeMeta: async (name, allData) => {
const chainRepo = Repository(client, chainUrl, chainBranch, { path: chainPath, exclude: ['_template'], require: 'chain.json' })
const validatorRepo = Repository(client, validatorUrl, validatorBranch, { require: 'chains.json', storeMeta: async (name, allData) => {
await client.json.set([name, 'addresses'].join(':'), '$', allData.reduce((sum, validator) => {
for(const chain of validator.chains.chains){
sum[chain.address] = validator.path
Expand Down Expand Up @@ -80,4 +80,4 @@ async function queueChainCheck(client, registry, monitor) {
if (chainRefreshSeconds > 0) {
queueChainCheck(client, chainRegistry, chainMonitor)
}
})();
})();

0 comments on commit a1cc7a1

Please sign in to comment.