mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-22 18:02:03 +00:00
Remove test pubkey from config, fix github api var
This commit is contained in:
parent
109254c490
commit
0b2ae3dc77
@ -11,7 +11,7 @@ const appConfig = {
|
|||||||
"wss://purplerelay.com/",
|
"wss://purplerelay.com/",
|
||||||
"wss://relay.devs.tools/"
|
"wss://relay.devs.tools/"
|
||||||
],
|
],
|
||||||
authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345", "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e"],
|
authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345"],
|
||||||
customLightningAddresses: [
|
customLightningAddresses: [
|
||||||
{
|
{
|
||||||
// todo remove need for lowercase
|
// todo remove need for lowercase
|
||||||
|
@ -4,7 +4,7 @@ import { throttling } from "@octokit/plugin-throttling";
|
|||||||
const ThrottledOctokit = Octokit.plugin(throttling);
|
const ThrottledOctokit = Octokit.plugin(throttling);
|
||||||
|
|
||||||
const octokit = new ThrottledOctokit({
|
const octokit = new ThrottledOctokit({
|
||||||
auth: process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY,
|
auth: process.env.NEXT_PUBLIC_GITHUB_API,
|
||||||
throttle: {
|
throttle: {
|
||||||
onRateLimit: (retryAfter, options, octokit, retryCount) => {
|
onRateLimit: (retryAfter, options, octokit, retryCount) => {
|
||||||
octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`);
|
octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`);
|
||||||
@ -21,7 +21,7 @@ const octokit = new ThrottledOctokit({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export async function* getAllCommits(accessToken, since) {
|
export async function* getAllCommits(accessToken, since) {
|
||||||
const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY;
|
const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_API;
|
||||||
|
|
||||||
const octokit = new ThrottledOctokit({
|
const octokit = new ThrottledOctokit({
|
||||||
auth,
|
auth,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user