Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
handle failed nile log rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed Oct 8, 2020
1 parent f56557b commit b3867be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion worker.js
Expand Up @@ -13,7 +13,13 @@ const getKeyPair = () => keys[Math.floor(Math.random() * keys.length)];

const nile = new Nile('gitbackup.org');

const nileLog = log => nile.pushChunk(`${os.hostname()}-${process.env.pm_id}`, log);
const nileLog = async log => {
try {
await nile.pushChunk(`${os.hostname()}-${process.env.pm_id}`, log);
} catch(err) {
console.warn('Log to nile failed');
}
};

async function getGithubEndpoint(...args) {
try {
Expand Down

0 comments on commit b3867be

Please sign in to comment.